Questions and discussion about using ProcessMaker 2: user interface, running cases and functionality
Forum rules: Please search to see if a question has already been asked before posting. Please don't ask the same question in multiple forums.
#57264
Hi,

I have a form where I can approve and reject a request.
Having two buttons, If the approve button is clicked, I want the user to be directed to another form,
and vice versa.

I've been trying to use the Selection and Evaluation for the routing routes, but, I can't seem to get the value of the clicked button.
Any suggestions?...

Thanks! :)
#57399
Hi changkaychangkay:

If you want to make this type of process or redirects by buttons, you need to have a hidden value for the response as well, then you have to get that value in the evaluation in parallel, so you can make that redirect.

Marco
#57507
Hi Marco,

I created a hidden field:
<button_choice type="hidden" id="button_choice" mode="edit" btn_cancel="Cancel"> </button_choice>

Then, in the button, I called out the javascript:
<SUBMIT id="submit" type="button" onclick="choice();" required="0" readonly="0" savelabel="0">
<en>SUBMIT</en>
</SUBMIT>

Here's the Javascript:
<script language='javascript">
function choice()
{
document.getElementById('button_choice').value="continue"
}
</script>

After all this, I have a evaluation routing route. Where, If @@button_click=="continue".

Thanks for the help! :)
Am I missing something?... :D

Fildena double 200 mg capacity to move the relaxin[…]

Wat is Fildena Double 200?

Fildena double 200 mg capacity to move the relaxin[…]

💥 Join the Exclusive Trading Community and Experie[…]

Briefly introduce the topic and provide context. S[…]