Making File Attachment control Readonly

C

chrisp

Hello All,

Is it possible to make the file attachment control in InfoPath
readonly? I am able to disable the control but, that makes the
attachment unreadable. My objective is to make the control modifiable
for the first user and make it readonly for everybody else.

Any thoughts or suggestions would be really helpful. Thanks in advance
for all the help.

-Chris
 
K

Kalyan Reddy

Hi Chris,

Try this workaround

1. Insert Two File attachment controls binded to a same field so that they
store the same attachment
2. Also insert a text box below
3. In the first attachment control, Check the check box “Allow the user to
browse, delete and replace filesâ€.
4. Add a conditional formatting to hide this Control when the “text box is
not blankâ€
5. In the Second attachment control, Uncheck the check box “Allow the user
to browse, delete and replace filesâ€
6. Add a conditional formatting to hide this Control when the “text box is
blankâ€
7. Now Preview the form and Insert an attachment (Second Control will be
hiding as long as the text box is Blank)
8. Enter some text in the text box
9. Now the second control is shown and it is Read only as per step 5 (First
Control is Hiding when the text box is not blank)

Hope this helps you.
 

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