Skip to main content
Nintex Community Menu Bar

Make attachment require when the decision is equal to approve.

  • June 7, 2018
  • 3 replies
  • 17 views

Forum|alt.badge.img+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

Forum|alt.badge.img+14
  • Scholar
  • June 7, 2018

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)‍‍

Forum|alt.badge.img+3
  • Author
  • June 8, 2018

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.


Forum|alt.badge.img+14
  • Scholar
  • June 8, 2018

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