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?
Ybbest, I was just researching the same thing. You'll need custom code in order to open, instead of download, the file attachment
Referenced Thread: infopath File Attachment - Run/View instead of Download?
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:
- Remove that field from the read-only view all together
- 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.