Please enable JavaScript to view this site.

Process Designer

Navigation: Javascript API > User dialog functions > Step actions

jr_hide_step_action(mixed action)

Scroll Prev Top Next More

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:

dialog_step_actions

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:

dialog_step_actions2

If Send and Assign has been hidden, only the button Save will be displayed:

jr_hide_step_action(['send', 'assign'])

dialog_step_actions3