anderj39
Workflow Hero

Re: How can I make attachments required if a particular box is checked?

Jump to solution

ArethereexistingMaps config:

Attachments config:

I added this Custom JS:

F!2: No reported errors

0 Kudos
Reply
emha
Automation Master
Automation Master

Re: How can I make attachments required if a particular box is checked?

Jump to solution

- remove validation function content from ArethereexistinsMaps' control settings and set its 'use custom validation' to no

- you likely do not call validateAttachements() function anymore, so remove this function from custom javascript.

- copy&paste function GetNumberOfAttacments() from following link into custom javascript

https://community.nintex.com/message/42747?commentID=42747#comment-42747 

0 Kudos
Reply
anderj39
Workflow Hero

Re: How can I make attachments required if a particular box is checked?

Jump to solution

Thank you for your continued help!

I've pasted that formula in my JS. Though, I'm sure I did it wrong (as it's still not working). 

Below is a screenshot of the JS and the Validation rule:

0 Kudos
Reply
emha
Automation Master
Automation Master

Re: How can I make attachments required if a particular box is checked?

Jump to solution

with removing validateAttachements() function from custom javascript I meant to remeve it including its body, not just its name.

do it once again: clear whole custom javascript content and paste there just GetNumberOfAttacments() function from the link provided.

0 Kudos
Reply
anderj39
Workflow Hero

Re: How can I make attachments required if a particular box is checked?

Jump to solution

Still not working:

0 Kudos
Reply
emha
Automation Master
Automation Master

Re: How can I make attachments required if a particular box is checked?

Jump to solution

can you post screenshot of attachments control configuration dialog with formatting section expanded?

0 Kudos
Reply
anderj39
Workflow Hero

Re: How can I make attachments required if a particular box is checked?

Jump to solution

0 Kudos
Reply
emha
Automation Master
Automation Master

Re: How can I make attachments required if a particular box is checked?

Jump to solution

where did you come to this syntax of CSS class definition???

put there simply:

nf-form-input AttachmentControlClass

validate‌ attachment‌  

View solution in original post

0 Kudos
Reply
anderj39
Workflow Hero

Re: How can I make attachments required if a particular box is checked?

Jump to solution

Yes!!!  It works!  Thank you for all of your help!

Reply