Changes

Status

29 bytes added, 22:27, 23 July 2009
Submit Button Script (Level 1 Only)
* The function must return either a value of '''true''' if the record should be submitted; or '''false''' if the record should not be submitted.
* Standard and Custom Field validation is performed '''after''' this script is run, provided that the function has returned '''true'''. If the function returns '''false''' no further validation is performed and the record is <u>not</u> saved/submitted.
* You can optionally re-label the Submit button using the '''Submit Button Label''' setting).
For example, if your Browser Script contains a function called ''custombsubmit'' you would put the following into the '''Submit Button Script''' section:
:[[Image:Bsf.png]]
The following sample of a [[Browser Script:Category:JavaScript Examples|JavaScript]] function will prompt the user to confirm if they want to submit the record.
<pre>
function customsubmit()
0
edits