infopath File Attachment Custom Data Validation

M

Miguel Isidoro

Hello,

I am trying to require file attachments under certain conditions (field 1 is
A or field 2 is B). How do I do this? The file attachment is in a
repeating section and has the "cannot be blank" option activated. The
repeating section hides under certain conditions. However, even if I hide the
section that contains the file attachment control, the error message for the
file attachment still appears since the control is not being disabled or the
validation removed. Is there any way to do this without doing it
programatically? My form is a browser enabled form.

Thanks
Miguel
 
R

Ravi G

Hi Miguel,

Instaed of activating 'Can not be blank' for file attachment, go to data
source and select the file attachment field in data source.
Edit the properties of the File attachment field from data source and go to
Validation tab and add your validation (your condition on which the file
attachment to become required)

It will solve your problem.
 
M

Miguel Isidoro

Thansk a lot Ravi. I just added a attachmentField is blank and my other
condition on which I want to validate the need of a file attachment and it
works fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top