What I am trying to do is that if the Status field is set to "Completed" then there must be a minimum of two attachments. I should also explain that the Status field is a drop-down containing a selection of "Completed" along with "Not Started" and "In Process".
Thanks for your assistance.
Thank you; however, I cannot seem to get this to work. Also, I've test this below and created a variable and then referenced this variable within a calculated field I've placed on the form to see what it would render during runtime and it's not returning anything:
return NWF.FormFiller.Attachments.GetAttachedFilesCount(NWF.FormFiller.Functions.GetFillerDivObjectForControl(NWF$("#"+NWF$("." + attCtrlClassName + " .nf-attachmentsRow").id)).data('controlid'))
Here's how I implemented it just in case I've missed something:
Check usage of GetNumberOfAttachments function carefully.
you have supplied wrong selector as its input parameter, it should have been "attCtrlClassName" which you have configured as 'CSS Class' for attachment control, instead of 'nf-form-input'
I've made the correction and it still does not work:
Status=="Completed" && (GetNumberOfAttachments("attCtrlClassName") <1)
I've also attached the actual form.
Thanks again for the help.