Thursday, July 12, 2012

Related content link doesn't work in InfoPath

Recently I needed to customize task's InfoPath form. Everything went well except that the related link which normally leads you to related item of your task didn't work. After short investigation of this problem I found out that the URL address contains spaces. This was caused by titles of the sites (if site title contains spaces, this spaces are then used in URL).
All you have to do is to create a new field (Hypertext Link) in the SharePoint designer and then in properties of this field set the Default value. Default value is then function like this:
concat(substring-before(Related Content; " "); "%20"; substring-after(Related Content; " "))


Hope this could help somebody :)

No comments:

Post a Comment