Difference between revisions of "Custom Save and Save Draft Buttons"

From SmartWiki
Jump to: navigation, search
Line 2: Line 2:
  
 
The following settings will be configurable:
 
The following settings will be configurable:
 
+
* '''Order''' - the order in which the button will appear on the screen, with lower numbers appearing further to the left of the screen.
 +
* '''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'''.
 +
* '''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.
  
 
[[Image:SubmitButtonSave.png|link=]]
 
[[Image:SubmitButtonSave.png|link=]]

Revision as of 14:14, 12 June 2014

If Save Button or Save Draft Button is selected on the Type of a Submit Button, the configuration settings will slightly differ from other Submit Buttons.

The following settings will be configurable:

  • Order - the order in which the button will appear on the screen, with lower numbers appearing further to the left of the screen.
  • 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.
  • 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 conditions used to control when the button is exposed.

SubmitButtonSave.png