Changes

Custom Save and Save Draft Buttons

2 bytes added, 18:23, 12 June 2014
no edit summary
* '''Label''' - the text that will appear on the button when exposed to end users.
* '''Description''' - descriptive text.
* '''Script''' - call to any scripts that should be run in conjunction with this button. The system will check if the script is present before trying to run it. Submit button script must be formatted as ''functionName(this.form)''. Spaces are not permitted. Script should return either '''true''' or '''false'''. :'''Important:''' If a '''''Submit Button Script''''' has been defined the Submit button will run that function, and will '''NOT''' perform the tasks listed above.
* '''URL''' - specify the URL the user should be redirected to following successful submission. '''NOTE:''' Redirects must be relative path (e.g. /wiki/index.php) rather than an absolute path (e.g. http://www.smartsimple.org/wiki/index.php).
* '''Visibility Condition''' - any [[Visibility Condition|conditions]] used to control when the button is exposed.
* It saves the record and changes the status to the status defined in the '''Submit Button Status''' section of the original status.
* ''Note that the label on the Submit button can be defined in the '''Submit Button Label''' section of the status page, so may appear with another name.''
'''Important:''' If a '''''Submit Button Script''''' has been defined the Submit button will run that function, and will '''NOT''' perform the tasks listed above.
|}
8,849
edits