Applying a Form Validation Rule
  • Updated on 11 Sep 2017
  • 2 minutes to read
  • Print
  • Dark
    Light

Applying a Form Validation Rule

  • Print
  • Dark
    Light

In the following tutorial we are going to demonstrate how to use the Rule that we have built in Creating a Form Validation Rule tutorial on the Form .
In the Designer Folder we click Create Flow on theFolder Actions Panel .
2018-01-03_160705.png

Then, we Name the Flow and click Ok to proceed to the Flow Designer.
2018-01-03_160816.png

In the Flow Designer we add Show Form from Favorite Steps category.
2018-01-03_160842-1024x768.png

We Name a Form and click Create to proceed to the Form Designer .
2018-01-03_160921-1024x768.png

Our Form layout looks as following…  We have a Date Time Picker control for user to be able to pick date, a Label , and a Button control for user to be able to submit the Form .
2018-01-03_161350.png

In the Form Properties panel on the right we locate Validation Rules category in Form Rules section and click Add New .
2018-01-03_161421.png

In the Add Validation Rules dialog we locate Validation Setup section, provide Name , keep Validation SourceRule , and click Pick under Rule options.
2018-01-03_161458.png

In the Entity Picker window we search for our Rule , select it and click PICK .
2018-01-03_161826.png

After we picked a Rule we need to Update Rule Inputs . DOB Rule input shows up and we click an icon to edit it.
2018-01-03_161854.png

In the resulting Edit Rule Inputs window we select Form Component in the Input Type drop-down. Then, we select our DOB data value in Form Data Name drop-down. In this example we are going to run this Rule when DOB value is changed. When finished, click OK to save and continue.
2018-01-03_162116.png

Then, we edit Validation Break Text . This message will show up on the Form if our Validation Rule returns “False” .
2018-01-03_162228.png

From the Break Level drop-down we can select Fatal or Warning . Fatal level will not let the user to submit the Form . Warning level will only display the message.
2018-01-03_162320.png

Next, we pick the controls to which we need to apply this Validation to (in this example Button and Date Time Picker) . In the Rule Execution settings we pick events that will Trigger this Validation Rule (in this example Date Time Picker : Value Changed).
2018-01-03_162345.png

We keep Advanced settings default and click Ok to save Validation Rule and continue.
2018-01-03_162414.png

Validation Rule is added. This completes our Form . We save the Form and close Form Designer.
2018-01-03_162440-1024x552.png

Back in the Flow Designer we connect the outcome from the Form to the End Step . This complete our Flow . We click Debug Flow on the top panel of the Flow Designer to test.
2018-01-03_162544.png

The Form loads and we pick a date that less than 18 years in past. Validation Rule is triggered and returned “False”.
2018-01-03_162647-1024x740.png

Validation message shows up as designed.
2018-01-08_113251.png

If we pick appropriate date, Validation Rule returns “True” and we are able to Submit the Form .
2018-01-08_113646.png

Flow executes with no issues...
2018-01-08_113702.png

Was this article helpful?