AnsweredAssumed Answered

Validating attachment field only if field is visible depending from a choice field

Question asked by cosimo on May 31, 2017
Latest reply on Jun 2, 2017 by cosimo

#validation #nintext form #attachment #visibility

I would like to add a validation to the attachment field but only if this field is visible. The field is only visible if a choice field is set for a selection field.

 

The attachment field is only visible if a choice field is set to a certain value (Created a rule for this):

 

I've also added a validation to this field that validates the number on at least one element:

1. Validation for Minimum attachments without expression:

In this case the problem is that even if the field is invisible the validation still works.

 

2. Validation with expression:

fn-If(fn-Equals(ShowAttachmentField,'Show'),1,0)

In this case, the validation does not work :-(

 

Someone has a suggestion or example how I can solve this problem?

 

Thank you for the help.

Outcomes