Flexi task- Decision always return -1

  • 19 February 2018
  • 2 replies
  • 5 views

Badge +5

Hi All,

I have a flexi task configured as below:

213439_pastedImage_1.png

213449_pastedImage_2.png

I want to customize the approval form so that if it's rejected, comment would be mandatory but somehow Decision just returns -1:

213450_pastedImage_3.png213451_pastedImage_4.png

And here is the Calculated Value settings:

213453_pastedImage_1.png

Does anybody have a suggestion?

Thanks


2 replies

Userlevel 5
Badge +14

This is a common problem with the Decision field of a task form. Selection options (drop down options that is) return the 'value' attribute attached to them, and in the case of the Decision control, those values are numeric and based on whichever values that (as far as I know) are generated in some database (or possibly form data) once the form has been published. 

However, due to the nature of 'previewing' forms, the values are not taken from any live arrangement and are both given a default -1 value making it difficult to create rules ahead of time. 

Please use my comment located here: https://community.nintex.com/thread/16251-understanding-validation#comment-62687 to achieve the outcome you are looking for without the need to create a new calculated control. 

If you require further assistance please ask. 


Badge +3

@MegaJerk  I am trying to achieve this on Attachment control, however when i assign the decision control the JS variable. And apply a validation rule with the code you suggested on the control isn't working. is it something you can help me with.

 

i want to validate attachments, i can do it by changing the minimum attachments to "1". but i don't want the validation to work on reject case.

 

Reply