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

Moderators: ArturoRobles, ArturoRobles

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

Maybe try increasing your thread stack size? Seems[…]

I use PM 3.4. Android push works while IOS push do[…]

[quote=ziadeh post_id=823031 time=1550759948 user_[…]

I have to support reports in processmaker 3.4. A s[…]