Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By Throwaway
What would be the easiest way to query STEPS in a trigger or have a button redirect to Dynaform (assuming it is in the same task)? I am aware that I could use the below method, but I would like to just have it directly go to the Dynaform without having to worry about the placement of the step being added or changed as the user would not use the STEPS menu. Maybe by somehow pulling the DOM elements and directing button_1 to dynaform_test?
Code: Select all
   //redirect to a DynaForm which is the 3rd step in the current task
By mishika

To redirect to a Dynaform without knowing its position in the task, you can use the following ProcessMaker function in a trigger:
Code: Select all
PMFRedirectToStep(@@APPLICATION, @%INDEX, 'DYNAFORM', '60422430056a69386a2a885087313352');
@%INDEX specifies the Delegation Index of the task and so within the task, you will be redirected to the Dynaform with the particular UID(i.e. 60422430056a69386a2a885087313352)

You can use this code in a trigger and not in Javascript. So, include this line of code in a trigger and place the trigger after the Dynaform from where you want to get redirected.

For further details about this function, you can refer the following link: ... Step.28.29

Hope this helps

Best Regards

Hello amosbato, Trying to retake this conversatio[…]

Resta de valores con 2 textobox

Hola! Se replicó lo que estabas haciendo […]

Hello! If you did not find the mcrypt extension […]

Hello! You have a mistake in the url, the correct […]