This function hides one or several step actions in the form.
Parameter |
Type |
Description |
|---|---|---|
action |
string | array |
Action name of array with the name of the actions that are to be hidden. |
Possible actions are:
•abort
•answer
•assign
•back
•finish
•jumpTo
•request
•resubmission
•save
•send
If several actions are committed they will be hidden successively. If the committed array contains other action names, the function will display an error message containing the not supported actions. Valid actions will be hidden despite the error message.
Note: Only functions activated in the step can be hidden!
Example
In a dialog the actions Send, Save and Assign are activated:

Activation of jr_hide_step_action('send')
In the dialog only the actions Assign and Save will be displayed. The action Assign will be moved on the top of the buttom:

If Send and Assign has been hidden, only the button Save will be displayed:
jr_hide_step_action(['send', 'assign'])
