- Name: Is the variable name that is passed as the input parameter
- Keywords: Is the source of the input parameter. It can be the fields, keywords, or variables.
- DataType: Is the type of data expected to be entered as String, Number, Boolean, and so on.
- Test Value: Is the sample or test value to be used.
So in this example here we have used a simple script for the password validation where the inputtxt is the value from the text input control (named: enterpassword) received from the Form.
So if you Test Script you can then view the output in the Code output section. Once you verify the output is as expected then you can save the script and click Test and Save. So now the script would act as the source to bind data to your controls.
When you click Test & Save the CUSTOMJS() function is added internally. It can be verified in the Custom Formula option. The CUSTOMJS() function cannot be invoked from another function. If you want to add additional computations you can build it in the Custom JS Block with parameters.