IIQ Forms || Workflow transistion based on clicked buton

Which IIQ version are you inquiring about?

8.3

Share all details about your problem, including any error messages you may have received.

Hello,
I have a form with two buttons: one for Submit and one for Save & Add Another.
Both actions are set to “next”.
I want to differentiate from the workflow side so that if the Save & Add Another button is clicked, it loops over the same step, and if the Submit button is clicked, it moves to the next steps.

You can define a parameter name and the value for it based on the button pressed like this:

<Button action="cancel" label="Cancel" parameter="buttonPressed" value="cancel"/>
<Button action="next" label="Next" parameter="buttonPressed" value="continue"/>

Then you can reference this parameter in your transitions:

<Transition to="end" when="buttonPressed.equals(&quot;cancel&quot;)"/>
<Transition to="Review Form" when="buttonPressed.equals(&quot;continue&quot;)"/>

I think you may also need to add the parameter name as a return variable in your Approval object:

<Approval name="Approval-FormCreateModify" owner="ref:launcher" return="buttonPressed" send="groupModel,formSettings,operation">

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.