Tuesday, May 26, 2015

How to invoke a client script by clicking on 'Submit' or onChange actions



This blog explains about how to invoke a Client script by clicking on 'Submit' button.

Scenario : For example, there are two date fields on the form, by clicking on 'Submit' button, validate date 1 must be before date 2. Perform this validation by clicking on 'Submit' button.

- Launch the form where you want to write the client script

- Right click on 'Form Header' -> Personalize -> All

- click on 'client Scripts' section

- Click on 'New'

- Below is how client script looks like




-  If you want to write invoke client script whenever any field value changes, for Eg : Whenever user enter a value for 'Date' field on a form.



















No comments:

Post a Comment