Make attachment require when the decision is equal to approve.


Badge +3

I am making a a task form which should make attachment compulsory when the user select the decision box to approve. It should be optional in case the decision is rejection.


3 replies

Userlevel 5
Badge +14

assuming you're on sharepoint on-prem and using classic forms....

... then have a look on this

https://community.nintex.com/message/42747?commentID=42747#comment-42747 

 

in your case validation formula might look like

Decision==12345 &&    /* 12345 will be value of APPROVE decision option specific in your environment*/
(GetNumberOfAttachments('AttControlClass') < 1)‍‍
Badge +3

Thank you Marian Hatala. This solution work well. One thing that I have notice is that this is working for the latest version of nintex and it is not working with order version of nintex.

Userlevel 5
Badge +14

can happen, nintex often changes internal models and functionality of single controls which causes custom scripts to fail.

not sure what exactly you mean with older versions, but if I recall correctly it should work for versiosn from some 2.7 and above

Reply