I need to include a hyperlink on the print view of an Infopath form. Now this is all good.
The problem is that the form does not close when submitted and then gets emailed to where it needs to go, so the url does not refresh. What I have done is to request the url:
XPathNavigator xnMyForm = this.CreateNavigator();
XmlNamespaceManager ns = this.NamespaceManager;
string strURL = HttpContext.Current.Request.Url.ToString();
And then I set the hyperlink to the txtURL datasource.
So what happens is that when the email is sent without closing the form and reopening it and clicking on the hyperlink, I just get a new blank form. Only when I close the form and reopen it do I get the form that was submitted.
How can I get the datasource to refresh with the new url that is created for the specific saved form? Is there a place where it is saved? I have checked in the xml source of the saved form but I cannot see anything there..!
View Complete Post