Returns the field name of the button that was pressed to trigger the page submission.
This function returns the field name of the button that caused submission of the current page. If the button was generated by the NAVIGATIONBUTTON Handlebars helper, it will be the name of the HTML template field that holds the button.
Executed
Client-side and server-side.
Arguments
None.
Returns
String.
Example
This function in a script action field records the field name in a variable.
function(helper, processor, props, context) {
helper.setVariable("subActionFieldName", helper.querySubmissionActionFieldName(), helper.VARIABLE_SERVERONLY);
return true;
}
As the button was generated by a Handlebars helper, we get the name of the template:
subActionFieldName = "MYTEMPLATE"