Added inline & popup form in events single page #323
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
How to add inline form shortcode in markdown
Here is the shortcode for adding form in markdown
Options
event_form_testing_mode
to true if you want to test the form locally. If this value is false, the form will not reappear after the first submission unless you open the page in a new tab or window.event_form_success_action
can have values ofvideo
orredirect
. If set tovideo
, you must also setevent_form_video_url
. If set toredirect
, you must provide a value forevent_form_redirect_url
.Examples
Show video after form fill-up
Redirect user after form fill-up
How to add popup form
Here is the frontmatter config for adding popup form
Options
Here's an explanation of the options provided:
true
, the popup form will be shown; otherwise, it will be hidden.popup_form_testing_mode:
true
to show the form again for testing purposes.popup_form_success_action:
popup_form_video_url
field.popup_form_redirect_url
field.popup_form_video_url:
popup_form_success_action
is set to "video", this field should contain the URL of the video to be displayed after form submission.popup_form_redirect_url:
popup_form_success_action
is set to "redirect", this field should contain the URL to which the form will redirect after submission.Examples
Show video after form fill-up
Redirect user after form fill-up
Default - show user page content after form submit