SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi I would like to display a read-only infopath form the the end-users.I have created a read-only view,everything works perfectly apart from the file attachments.In a a read-only infopath form view , users could not download the file attachments.Is there a way I could ovverride this just for the file attachment?Otherwise ,I have to create a rule to manually make every controls read-only on the form. Can anyone shine some light on this?

share|improve this question
up vote 1 down vote accepted

Ybbest, I was just researching the same thing. You'll need custom code in order to open, instead of download, the file attachment

Code here:

Referenced Thread: infopath File Attachment - Run/View instead of Download?

share|improve this answer

You can only display Infopath Picture of File Attachment field as Picture/File Attachment control or Calculated Value (field). Unfortunately Calculated value shows entire base64 contents of the attached file so it does not help much.

Two options IMHO:

  1. Remove that field from the read-only view all together
  2. On edit view add additional required String field where user filling form would enter filename and display it on read-only view

Please note: InfoPath views are nice but they are just views, this is not a security feature and skillful user can still retrieve your files from InfoPath.

share|improve this answer
Thanks for the quick reply however I do not get the second option?Let people type in the file name they attach to the form and display the form name in the read-only view?But I would like people to see the attchment content? – Ybbest Jan 6 '11 at 0:14
I am not sure I understand your problem then, if you would like people to be able to open attachments, what do you mean by "users could not download the file attachments". As soon someone opens attachment it has been downloaded to their computer. – Toni Frankola Jan 6 '11 at 10:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.