Overview
Example Lab Details | |
Version | 6.10.2 |
Root Folder | Example Lab-Validation For Data Repeater |
Modules | None |
Dependencies | None |
This Example Lab demonstrates how to use a Validation Rule with Data Repeater component on a Form.
Explanation
For this example a Data Repeater User Control was used. Data Repeater used the Account Type as the Form input. It has the fields Email Address, First Name, Last Name that are required for submission. This Data Repeater is added to a regular Form. On the Form there is a Validation Rule. This Rule will prevent the user from submitting the Form without adding at least one entry on the data repeater. The Data Repeater outputs a List of Account type. The Validation Rule takes in this list and will check if its empty. If it is empty this indicates that an entry was not provided and the validation will be thrown on submission.