Search code examples
c#.nethyperlinkinfopath

Customizing InfoPath Hyperlink Addresses


I have a repeating table, and I want one of the fields to be a hyperlink. There doesn't seem to be any way to set the address of the hyperlink based on a formula, though. I want to be able to make the address equal to some base URL concatenated with one of the other fields in the table. Is there any way to do this?


Solution

  • private string ChangeXmlContent(Uri url, XmlDocument xdoc, string description)
    {
        XmlNode group91 = xdoc.SelectSingleNode("//my:group91", NamespaceManager);
    
        group91.SelectSingleNode("//my:Url1", NamespaceManager).InnerText = url.ToString();
    }
    

    Fast & easy