Form Functions, Handlers and Signatures
Button Function Signatures
Button - Wizard: NEXTFUNCTION
A field level property on the wizard button field to calculate the next page. It must be a function. The function should return the name of the page to display.
function(helper, defaultPage, sessionData, defaultPageInstance) {
return defaultPage;
}
Button - Wizard: BACKFUNCTION
A field level property on the wizard button field to calculate the previous page. It must be a function. The function should return the name of the page to display.
function(helper, defaultPage, sessionData, defaultPageInstance) {
return defaultPage;
}
Button - Navigation: NAVFUNCTION
A field level property on the navigation button field to calculate the page to navigate to. It must be a function. The function should return the name of the page to display.
function(helper, defaultPage, sessionData, defaultPageInstance) {
var thePage;
// set the page to go to...
return thePage;
}
Button - Navigation: SHOWFUNCTION
A server-side field level property on the navigation button field to determine if the button should be shown. It must be a function. The function should return true to show the button.
function(helper) {
var showButton = true;
// determine if button should be shown...
return showButton;
}
Button - Script Button: SCRIPT
The code to execute when the script button is pressed. It must be a function.
function(helper) {
}