Skip to main content
Nintex Community Menu Bar
Solved

Assign flexi task form: rule for one button works with another button

  • May 4, 2022
  • 5 replies
  • 138 views

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.

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.

5 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • May 9, 2022
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?

  • Author
  • Rookie
  • May 11, 2022

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

 


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • May 12, 2022

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


  • Author
  • Rookie
  • May 13, 2022

Here is the form


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • May 26, 2022
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.