0
edits
Changes
Status
,→Submit Button Script (Level 1 Only)
* This feature can be used to create a [[Custom Field Type: Special – Browser Script|Browser Script]] that will perform custom validation of the data on the page, and can then optionally change the status or execute the submit function as part of the script.
* You can optionally re-label the Submit button using the '''Submit Button Label''' setting).
The following sample of a [[Browser Script]] will prompt the user to confirm if they want to submit the record.
<pre>
function customsubmit()
{
var answer = confirm ("Do you really want to submit this?")
if (answer)
{
alert ("Consider it done")
return true
}
else
{
alert ("Keep filling it in then")
return false
}
}
</pre>
==Status Triggers==