here is the result:
var strURI = XDocument.Solution.URI; //template path
var strFormLib = strURI.substr(0, strURI.indexOf("Forms/template.xsn")); //
remove this from path
var strFormName = XDocument.URI // file path URL
var strURL = XDocument.DOM.selectSingleNode("/my:myFields/my:URL");
//strURL.text = strFormLib + "/" + strFormName;
strURL.text = strFormName;
on way you can get the the library the form in in the other way returns the
full path with file name
> Is there a way to display the path or URL to the form? I am using the forms
> to display content. the output changes from time to time. not all viewers
[quoted text clipped - 6 lines]
> I am not commited to this setup. I am open if there is another way to
> accomplish this.