Tuesday, April 10, 2012

InfoPath 2010 links revert to "http://address"

The Scenario - In InfoPath 2010, you want to use picture control to take the user to an external URL and you want to set the URL on the fly.

The Problem - After adding the control and setting the URL to an element in your data source, you discover that the data source mapping is lost and the control has reverted back the fixed string: http://address/.  Deleting and re-adding the control sometimes fixes the problem.  Often, this does not work.

The Workaround - (A longer version can be found here Steve's SharePoint Nuggets).  Open Windows Explorer, copy and paste the image into InfoPath Designer.  Now, settings will be retained.