- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Caroline,
Script can be applied to an event on an field through the Script Editor.
1) Go to the Script Editor. If the Script Editor is not visible it can by toggled on through the toolbar Window > Script Editor or Shift + Ctrl + F5.
2) Highlight the field you want the script applied to, in this case 'q1'.
3) Since we want the validation script applied to the exit event (meaning the script will fire when focus leaves the field), open the 'Show' drop-down and select the 'exit' event.
4) Designer supports scripting in JavaScript and FormCalc. Since the script being applied is JavaScript make sure the Language selected is JavaScript. This may or may not be your default scripting language.
5) Since we want the script to execute on the client make sure Run At is set to Client. This may or may not be your default execution setting.
6) Add the script.
Steve