I have Nintex office 365 form to implement validation rule for attachment is mandatory field.
Please include Jquery Code + Form Validation Rule.
JQuery Form Loading Code:
NWF$(document).ready(function () {
try {
var chkUATAttachment = NWF$("#" + JSchkUATAttachment);
chkUATAttachment.prop('checked', true);
NWF.FormFiller.Functions.ProcessOnChange(chkUATAttachment);
}
catch (e) {
console.log(e);
}
});
function GetNumberOfAttachments(attCtrlClassName){ return NWF.FormFiller.Attachments.GetAttachedFilesCount(NWF.FormFiller.Functions.GetFillerDivObjectForControl(NWF$("#"+NWF$("." + attCtrlClassName + " .nf-attachmentsRow")[0].id)).data('controlid'))}
Rule:
No comments:
Post a Comment