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.
Decision==12345 && /* 12345 will be value of APPROVE decision option specific in your environment*/
(GetNumberOfAttachments('AttControlClass') < 1)
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.
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