cancel
Showing results for 
Search instead for 
Did you mean: 
furstlars
Nintex Newbie

Re: attachments custom validation

Jump to solution

@emha 

 

Is it possible to set a calculated value (connected to a column) to "Yes" if the count is > 0?  I've tried various methods but it won't display, such as

 

function GetNumberOfAttachments(attCtrlClassName) {

return NWF.FormFiller.Attachments.GetAttachedFilesCount(NWF.FormFiller.Functions.GetFillerDivObjectForControl(NWF$("#"+NWF$("." + attCtrlClassName + " .nf-attachmentsRow")[0].id)).data('controlid'))

if (GetNumberOfAttachments("nf-form-input") > 0) {
NWF$('#' + AttachmentBoolean).val("Yes");
NWF$('#' + AttachmentBoolean).trigger('focusout');
}

 

0 Kudos
Reply
Automation Master
Automation Master

Re: attachments custom validation

Jump to solution

pure technically, yes it's possible.

 

 

but the problem is how to fire calculated value control recalculation based on attachement changes....

one would need to make the formula dependent on attachement control. but attachement control is not listed among named controls, so you cannot reference it directly.

furthermore, due to it's complexity, attachement control do not fire any 'change' event that you could write custom handler for.

 

so one would need to make some custom/manual trigger to force recalculation. eg. textbox change, yes/no checkbox state change, etc.

if that' suitable for you, then I think it could work.

 

0 Kudos
Reply