My InfoPath form publishes to a Form Library in SharePoint and contains an "attach file" control. If a user attaches a file, I want the form library to display yes or no as a text value that can be promoted to the form library so that users will be able to see if one of the submitted forms includes an attached file or not.
I created a text control that defaults to NO. What I want to occur is: If a file is attached, change the value in this field to YES. (The field is hidden from users via conditional formatting.)
The issue is - I don't know how to set the condition to change the value to YES.
I tried "If [attach file] is not blank, change value to YES" thinking this was the correct way to verify the condition. But that did not work!!
Which option in Conditions will give me the right result? How does the form "know" that a file was attached? The blank/not blank and present/not present options do not seem to pass the right result.
OR- if there is a better way to allow me to promote to SarePoint the fact that a file was attached, let me know!
Thanks!