Best Practise.. RichForms: How to use reference/link to an external javascript in Execute Script Action
Dear Community,
Someone an idea what is the best practise to link/reference to an external script containing field validations / calculations etc. (if possible?).
I would like to create a javascript (stored in siteAssets in same site as created RichForms). The javascript contains several validations / checks for multiple Form fields.
Objective is to have one validation source for multiple checks/validation actions on my forms instead of the same validations on multiple places.
Maintenance of the validations can than be done on one single place instead of multiple.
Is this possible?
thanks in advance
-
Have a look at the answer in this smiliar question about external scripts: Form load action manually
You can use the functions from your global script in validation expression as well.
Check out this example validating the field's value by function of a linked script:
function g_checkIfFortyTwo(val) {
return (val === 42);
}0
Please sign in to leave a comment.
Comments
1 comment