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.
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
And when I run the workflow, this rule works for both buttons.
Best answer by SimonMuntz
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.
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.