Submit Rules
Transcript Summary
Introduction
What's up, databasers? Sam here, and in this video, we're going to talk about form submit rules.
What Are Form Submit Rules?
Submit rules are rules that you apply to a form, which are triggered when you click the submit button. These rules dictate what happens after form submission.
Types of Form Submit Rules
-
Confirmation Message
The first option is a standard confirmation message that displays after form submission. It typically shows a message like "Form successfully submitted." -
Redirect to an Existing Page
You can also redirect the user to an existing page in your app after they submit the form. This allows for customized navigation within your app after a form is submitted. -
Redirect to a Website URL
The last option is to redirect the user to a completely different website when they submit the form. You can specify any URL you'd like for this rule.
Demonstration of Submit Rules
Example 1: Confirmation Message
Let's take a look at how the confirmation message works. Here, we have a student form. When a user adds a student and clicks save, a confirmation message pops up saying, "Form successfully submitted." You can also configure this message to auto-hide after 10 seconds or customize the message as needed.
Example 2: Conditional Submit Rule
Let's say you want to show a different confirmation message based on a specific condition. For instance, in our form, we have a radio button asking if the person is a new student. If they select "Yes," we can display a custom message like, "Welcome to our College. A student advisor will be in touch with you to set up a student plan." This message will only trigger when the condition is met.
Example 3: Redirect to an Existing Page
In this example, we have a form where users can add a new school. If they choose to add more details about the school, we can redirect them to a specific page, such as the "Edit School" page, after submission. This allows the user to continue adding information after the initial form submission.
Example 4: Redirect to a Website URL
You can also redirect users to an external website by specifying a custom URL in the submit rule. For example, after students enroll, you could redirect them to a scholarship website, automatically passing form parameters like their name to the external form.
Conclusion
Those are the three options for form submit rules:
- Show a confirmation message (default)
- Redirect to an existing page
- Redirect to a website URL
I hope this was clear and helpful. Have a wonderful day!
We'd love to hear your feedback.