Skip to main content

Hello All,
I have a form for Assign flexi task, and two buttons on it connected to 'Decision' with return values 1 and 2 (Approve and Reject). Decision control isn't visible with default value 1.

22901i1835D9AAB365EBBF.png

I want to invalidate form only when user clicks rejection button, if comment is empty.

So I set a rule for rejection button as follows

22902i905034B6C10D08EE.png

And when I run the workflow, this rule works for both buttons.

Hi,

The only way that the rule would work with both buttons is if the rule was applied to both buttons. Is this the case?

No
I have a form





for button reject i have a rule





for button approve i don't have any rule



When i start workflow
and press approve, i see this





 


Are you able to provide an export of the Task form?


Here is the form


Hi, Sorry for the delay in replying.
What you are seeing is expected behavior. Unfortunately there is no On-Click runtime function to say if a button is clicked and a field is empty to invalidate. The current rule will trigger when the form is submitted regardless of the button that is clicked.
As a workaround you could hide the reject button until a comment is entered therefore making sure a comment is entered before the reject button is even seen.

Reply