|Top Previous Next|
Scripts can be dangerous so CHECK the operation of your script thoroughly before deploying and see eaForms Script restrictions
eaForms Script buttons offer:
Overview of script buttons
We have provided script buttons as an experiment. The idea is that the execution of a script which could perform some actions at the point that a user wishes to save their work could be used on a variety of ways. For example, to validate information, update a file with details of elements that have been changed, prevent the saving of information to already approved items... the list could be is endless and will vary depending on project needs.
To avoid issues that could arise if the script were not installed in the model or on the users system we embed the script definition in the form definition at the design stage.
When the designer selects the Add Control | Button and then selects a script data source they are presented with a form in which to write the script when they save the button definition. The designer will put the script text into this dialogue and save.
As with all controls they changes to the control script can be made using the Edit Control Definition as illustrated below.
- 1 if the script is true and the save operation will execute and close the eaForm
- 0 if the script is false and the save operation will NOT be performed