Unofficial documentation how to do interesting things and work around problems in ProcessMaker

Moderator: amosbatto

Forum rules: Unofficial documentation for features which have not been tested by Quality Assurance or may change in future versions of ProcessMaker
#793430
Clicking on the Previous Step link in the upper left-hand corner of a DynaForm will redirect to the previous step (DynaForm, Input Document or Output Document) in the same task, but it will NOT save the form's contents. Note that the Previous Step link will not appear if the DynaForm is the first step in the task (since there is no previous steps).

Clicking on the Next Step link in the upper right-hand corner of a DynaForm will redirect to the next step and will also save the contents of the form. It is the same action as clicking on a submit button.

If wishing to prevent users from using the Previous Step and Next Step links, then it is recommended to hide them using JavaScript. The following JavaScript code will hide the Previous Step link and its associated bullet graphic:
Code: Select all
$("#dyn_backward").hide();
$("img[src='/images/bulletButtonLeft.gif']").hide();
Likewise, the Next Step link and its forward bullet can be hidden with the following code:
Code: Select all
$("#dyn_forward").hide();
$("img[src='/images/bulletButton.gif']").hide();
If needing the Previous Step link to save the current contents of the DynaForm before redirecting to the previous step, then add a click event handler to the dyn_backward link, like this:
Code: Select all
$("#dyn_backward").click(function() {
  $("form").saveForm()
});
It is also possible to use the click method to redirect to the previous or next step in the task. The following code will direct the web browser to the previous step when a button with the ID "goBack" is clicked:
Code: Select all
$("#goBack").click(function() {
  $("#dyn_backward").click();
});
Likewise, the following JavaScript code uses setOnchange() to create an event handler that redirects to the next step when the user selects the option "more_work" in a dropdown with the ID "selectJob":
Code: Select all
$("#selectJob").setOnchange( function(newVal, oldVal) {
  if (newVal == 'more_work') {
     $("#dyn_foreward").click();
  }
});
attach file

Hi all. i upload input document to the process. Bu[…]

Hi Amos, Thanks again. The next task is a "Va[…]

Hi Amos, problem fixed. The field variable and th[…]

Hi Amosbatto. I apologise, I have been away for w[…]