Multiple Validations
When this method is selected, multiple validation rules can be applied to a single field. For example, you might set a quantity field to be Numeric to prevent people from entering ten instead of 10. And then you might add a second validation of Greater Than to ensure that the quantity ordered is greater than some mininum value.
On This Page
Creating a Multiple Validation
- Choose the field requiring validation.
- In the Value column for Validation, choose Multiple (Advanced) from the dropdown list. The Validation Config property appears below Validation.
- Click Validation Config. The Multiple Validation Methods window appears.
- Click Add New Validation Method. The Validation Method Settings window appears.
- In the Method dropdown list, choose your first validation. The list includes all the validations available on the Validation property. Depending on the validation chosen, the related fields display in the window below the Method field.
- Optionally, you can create a message for this validation but we recommend that you leave the field blank and use the default validation message.
- Click Save. The validation method appears listed on screen.
- Click Add New Validation Method and create a second validation. Depending on your business requirements you can stack as many validations as required. Each is listed on screen.
- Click Save when you are finished creating your validations on this field. Be sure to test the form for all conditions.
Editing Validations
If you uncover an issue when testing, you can return to the field and modify each of the validations.
- Choose the field.
- In Field Validation Setting properties, click Validation Config.
- In the Multiple Validation Methods window, choose the validation method you need to work on and click Edit Method. The settings for that validation method appear.
- Make any changes required and click Save.
- Click Save again to close the Multiple Validation Methods window.
Changing Order
It may be that the order in which the validations occur is causing a problem.
If you need to change the order of the validations, in the Multiple Validation Methods window, choose one and click moveup or movedown. The method is moved.
Deleting a Validation
- Choose the field.
- In Field Validation Setting properties, click Validation Config.
- In the Multiple Validation Methods window, choose the validation method and click Delete Method.
- Click Yes on the confirmation message. The validation method is deleted.
- Click Save to close the Multiple Validation Methods window.
0 Comments