API for Scripting

You can access the form model at runtime by using API methods in your JavaScript scripts.

Note: The API described here can be used for writing validations as well as actions. Updating form fields or their properties using set methods is allowed only in the context of actions. Validation scripts cannot modify the fields or their properties.