Enable all buttons on the current page that have the specified action. The label and fieldID are optional and can be used to target a specific button.
Executed
Client-side only.
Arguments
Argument | Type | Description |
---|---|---|
actionName | String, required | The name of the action to be enabled. Actions are described in the override function section of the Wizard Buttons article |
label | String, optional | The button label to match |
fieldID | String, optional | The ID of the field to target |
Example
See .disableActionButton for a working example.
In this example all FINISH (submit) actions will be enabled.
function(helper) {
helper.enableActionButton("FINISH");
}
In this example only the FINISH button with the label "Submit" will be enabled.
function(helper) {
helper.enableActionButton("FINISH", "Submit");
}
In this example only the FINISH button of FIELD4 will be enabled.
function(helper) {
helper.enableActionButton("FINISH", helper.getFieldID("FIELD4"));
}
This function works with a button generated by the Navigation Button Helper Handlebars helper. Note how the button's identifier is used to find it within the template.
function(helper) {
helper.enableActionButton("NEXT", helper.getFieldID('MYTEMPLATE') + '_' + 'BUTTONIDENTIFIER');
}