Show/Hide Toolbars

Thereforeâ„¢ Help

Tutorials > Solution Designer > Design > eForms

Validated Input Values

Scroll

The validation tab of a component in eForms can be used to determine whether user entries have been done correctly. This tutorial exemplifies using scripting to ensure date fields are entered correctly.

SD_T_Design_Eforms_Valinpl_001

 

1.In the Validation tab of a date component's settings, set the custom error message you wish to display.

SD_T_Design_Eforms_Valinpl_002

2.Expand the Custom Validation panel and set the validation condition using Javascript.

SD_T_Design_Eforms_Valinpl_003

3.Save the changes and the eForm will now perform a check to ensure the start date happens before the end date.

 

Info

Note:
When writing a custom script, the API tab for the property name will first need to be checked. The property name is predetermined by the eForms and it does not change. The first time that a new component is created, it advisable to save the form and check the name of that component before undergoing any scripting.