...
What is Form Scripting?
In some cases, additional logic must be added to a form. For example
update the value of a form widget based on the changes on in another widget
do perform special calculation for some widget values
do perform more complex validation of widget values (especially if widgets must be “cross” validated)
and more…
...
Info |
---|
Form Scripting requires JavaScript knowledge! See here for a full JavaScript reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference |
...
In case you have to implement more complex logic which is more than a single line, then consider to put your form script into a property in the property store and link to it like this:
...
For each event you have to define a function with the name of the event and finally then return it.
Inside the method you can use the fieldId
variable in order to check whether this event was caused be the widget you are interested in.
Info |
---|
Note |
Calling a Command from inside a Form Script
...