<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jennifer Lindsay</title><link>https://www.infopathdev.com:443/blogs/jennifer_lindsay/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Emailing Links to InfoPath Forms</title><link>https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/2017/03/22/emailing-links-to-infopath-forms.aspx</link><pubDate>Thu, 23 Mar 2017 00:23:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115888</guid><dc:creator>jscookster</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">https://www.infopathdev.com:443/blogs/jennifer_lindsay/rsscomments.aspx?PostID=115888</wfw:commentRss><comments>https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/2017/03/22/emailing-links-to-infopath-forms.aspx#comments</comments><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;font face="Calibri" size="3"&gt;Sometimes you want your users to be able to open forms
without having to navigate to SharePoint and open up the associated form
library. Sometimes you want them to do it without even having to log into the
SharePoint site: maybe your end users don’t even have SharePoint accounts!
Today’s blog post will give you a few tips on how to accomplish these and other
goals.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;To give your end users the ability to open a form from
outside the SharePoint library, you need to know the syntax of an InfoPath form
link. Let’s look at a sample link in detail. Suppose you have SharePoint site
called http://&lt;/font&gt;&lt;a href="http://www.myshpsite.com/"&gt;&lt;font color="#0563c1" face="Calibri" size="3"&gt;www.MyShPSite.com&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri" size="3"&gt;, with a
sub-site called MySubsite, and an InfoPath form library called MyLibrary. There
are many different query parameters for an InfoPath form link, most of them are
optional so we’ll only cover the necessary ones--- XsnLocation and
XmlLocation---in this post. (You can read more about the other query parameters
&lt;/font&gt;&lt;a href="https://msdn.microsoft.com/en-us/library/office/ms772417(v=office.14).aspx"&gt;&lt;font color="#0563c1" face="Calibri" size="3"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri" size="3"&gt;.)
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font face="Calibri" size="3"&gt;New Form Link: &lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;http://www.MyShPSite.com/MySubsite/_layouts/FormServer.aspx?XsnLocation=https://MyShPSite.com/MySubsite/MyLibrary/Forms/template.xsn&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font face="Calibri" size="3"&gt;Existing Form Link:&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;http://www.MyShPSite.com/MySubsite/_layouts/FormServer.aspx?XmlLocation=/MySubsite/MyLibrary/MyFormName.xml&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;(Note: to open existing forms, you’re going to need to make
sure you are using a unique naming convention for your forms! Otherwise if you
have three forms all named 2016-12-25.xml, how will InfoPath know which form to
open?)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;Ok, now that you have your link, how do you get it to your
users? Well, the easiest way is to send them an email with the link. To do
this, you’ll need to download a nifty tool called SharePoint Designer – it
exists in both 2010 and 2013 varieties, download the one for whichever flavor
of SharePoint your site is running on.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Now that you have downloaded your designer tool, switch back
to InfoPath. Whatever naming convention you’re using for your forms, store that
value in a text field in your schema. I’d suggest calling this field FormName
or something similar. &lt;br /&gt;
&lt;br /&gt;
(Note: if you only want to send links to new forms, you can skip this FormName
stuff and go straight to the FormLink part down below.)&lt;br /&gt;
&lt;br /&gt;
&lt;span style="mso-no-proof:yes;"&gt;&lt;img width="214" height="55" style="width:214px;height:55px;" src="http://www.infopathdev.com/blogs/jennifer_lindsay/Images/blogposti1.png" border="0" alt="" /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;Now add another text field called FormLink, and set the
default value of that field to the following hardcoded value for a new form:&lt;br /&gt;
http://www.MyShPSite.com/MySubsite/_layouts/FormServer.aspx?XsnLocation=https://MyShPSite.com/MySubsite/MyLibrary/Forms/template.xsn&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;…or this formula for an existing form:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;img width="612" height="112" style="width:612px;height:112px;" src="http://www.infopathdev.com/blogs/jennifer_lindsay/Images/blogposti2.png" border="0" alt="" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Now promote that FormLink field by going to File &lt;/font&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt; Form Options &lt;/font&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt; Property Promotion and
adding FormLink to the list:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;img width="583" height="477" style="width:583px;height:477px;" src="http://www.infopathdev.com/blogs/jennifer_lindsay/Images/blogposti3.png" border="0" alt="" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;Republish your form to your form library, then open up your
site in SharePoint Designer. (If you don’t have SharePoint Designer, you can
download it for free &lt;/font&gt;&lt;a href="https://www.microsoft.com/en-us/download/details.aspx?id=35491"&gt;&lt;font color="#0563c1" face="Calibri" size="3"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri" size="3"&gt;.)
Navigate to the Workflows page then add a new List Workflow. Select the name of
your form library, then name your workflow (mine is called Send Email).&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;img width="624" height="428" style="width:624px;height:428px;" src="http://www.infopathdev.com/blogs/jennifer_lindsay/Images/blogposti4.png" border="0" alt="" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Now you need to create the email template. In the WORKFLOW
ribbon at the top of SharePoint Designer, select Action &lt;/font&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt; Send an Email. Open up the
Email Designer, select a recipient, type a subject heading and body text, then
type the text you want to describe your form link. Highlight this text, then
click the Hyperlink icon to bring up the Edit Hyperlink popup menu. Click the
fx button on the Address line, then select the Form Link promoted property from
the source field dropdown in the String Lookup popup window. Click OK to close
out all of these windows.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;img width="620" height="554" style="width:620px;height:554px;" src="http://www.infopathdev.com/blogs/jennifer_lindsay/Images/blogposti5.png" border="0" alt="" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;We’re almost done: go back to the Workflow Settings page
(Workflows &lt;/font&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;
click the name of your workflow) and edit the Start Options. Select the checkboxes
that correspond to your particular use case. In mine, I want the email workflow
to run when a new form is submitted and when an existing form is resubmitted,
so I have both of the bottom boxes checked.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;img width="567" height="159" style="width:567px;height:159px;" src="http://www.infopathdev.com/blogs/jennifer_lindsay/Images/blogposti6.png" border="0" alt="" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;And finally, make sure to Publish your workflow to your
SharePoint site by clicking the Publish icon at the top left of SharePoint
Designer.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;That’s it! Now each time your workflow runs, and email will
be sent with a link to your form (or to open a new form, if that’s the option
you selected way back at the beginning of this tutorial).&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font face="Calibri" size="3"&gt;Emailing Links to
FormsViewer Forms&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;FormsViewer is a great alternative to InfoPath. Links can be opened on mobile devices and you have the option for anonymous opens. You can also
send links to FormsViewer forms, but because those links are slightly longer
you’ll need to make a few adjustments to the above process.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;If you have FormsViewer installed on your SharePoint site,
you can copy the link to open a new form by right-clicking on either the Open
Form button or the Open Form (anonymous) button.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;img width="482" height="198" style="width:482px;height:198px;" src="http://www.infopathdev.com/blogs/jennifer_lindsay/Images/blogposti7.png" border="0" alt="" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;Once you have your link copied down somewhere, you will go
through the same process described above to promote your Form Link field, with
one special modification: you need to first create a Site Column on SharePoint,
and then promote the Form Link field to that specific column.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;a href="https://support.office.com/en-us/article/Create-a-site-column-54f6864a-ecbe-4864-b28b-f8a4577d71ab?ui=en-US&amp;amp;rs=en-US&amp;amp;ad=US"&gt;&lt;font color="#0563c1" face="Calibri" size="3"&gt;Here&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri" size="3"&gt;
is a tutorial on how to create a SharePoint site column (make sure the one you
create allows multiple lines of text).&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Once your site column is created, you will need to associate
the FormLink field with that site column by re-publishing your form the long
way (do NOT edit the Promoted Properties menu in InfoPath – that way won’t
work!).&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Go to File &lt;/font&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt; Publish &lt;/font&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt; SharePoint Server to
bring up the Publishing Wizard, then Next-click your way through the wizard
without changing anything until you get to the promoted columns list. Click the
Add button, select your FormsViewer FormLink field from the list of schema
fields in the popup window, then select the Custom Columns site column group,
and select the name of the site column you created in the previous step (I
named mine FormsViewer Link). Click OK, Next and then Publish.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;img width="588" height="512" style="width:588px;height:512px;" src="http://www.infopathdev.com/blogs/jennifer_lindsay/Images/blogposti8.png" border="0" alt="" /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 8pt;"&gt;&lt;font face="Calibri" size="3"&gt;The steps to create an email workflow are the same for
FormsViewer, so that’s it for configuring an email workflow to send a link to
open a FormsViewer form!&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=115888" width="1" height="1"&gt;</description><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/infopath/default.aspx">infopath</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/FormsViewer/default.aspx">FormsViewer</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/Email/default.aspx">Email</category></item><item><title>xPaths With Double Forward Slashes Can Prevent Browser Publishing</title><link>https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/2014/07/02/xpath-double-slash-validation-issue.aspx</link><pubDate>Wed, 02 Jul 2014 22:23:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98244</guid><dc:creator>JenniferLindsay</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">https://www.infopathdev.com:443/blogs/jennifer_lindsay/rsscomments.aspx?PostID=98244</wfw:commentRss><comments>https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/2014/07/02/xpath-double-slash-validation-issue.aspx#comments</comments><description>&lt;p&gt;If you use InfoPath long enough, you will eventually run into a browser&amp;nbsp;publishing error message something like this: &amp;quot;&lt;strong&gt;The form template has been published to the server but it can only be opened in InfoPath Filler&lt;/strong&gt;.&amp;quot;&lt;/p&gt;&lt;p&gt;Often the message will tell you to examine Design Checker and resolve any errors that appear there, but if there aren&amp;#39;t any errors then this message can feel quite frustrating.&amp;nbsp; Your next step in troubleshooting should be examining the SharePoint logs, but that&amp;#39;s not possible if you have a cloud-based installation, such as Office 365, and there&amp;#39;s no guarantee the logs will contain useful information.&amp;nbsp; Another tool that can help with troubleshooting is &lt;a href="http://www.telerik.com/fiddler" target="_blank"&gt;Fiddler&lt;/a&gt;, a simple desktop application that allows you to examine the web traffic that is sent back &amp;amp; forth&amp;nbsp;between InfoPath and your SharePoint server during the publishing process---but again, no guarantees that that traffic will contain the answer.&lt;/p&gt;&lt;p&gt;If you&amp;#39;ve tried all these steps and still don&amp;#39;t know what&amp;#39;s going wrong, then usually (a) there is a configuration issue with your SharePoint server, or (b) InfoPath has failed to catch an error in your form&amp;nbsp;template. A few weeks ago, I discovered one of these types of errors after a long painstaking search. I&amp;#39;m posting this blog to give you a heads up, in case you&amp;#39;ve got a similar undetected error in your own template.&lt;/p&gt;&lt;p&gt;For some reason, InfoPath will verify xPaths that contain double forward slashes, like the following:&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;xdXDocument:GetDOM(&amp;quot;Status&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&lt;span style="background:yellow;mso-highlight:yellow;"&gt;//&lt;/span&gt;d:ID&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;In other words, if you have a double slash inside an xPath expression in one of your rules, then InfoPath won&amp;#39;t detect it and will treat the xPath as valid.&lt;/p&gt;&lt;p&gt;If you then try to browser publish a form containing such an expression, IPFS---InfoPath Forms Service, the server-side web service that converts templates to browser forms---will throw an error and only publish in filler mode without telling you why.&amp;nbsp; What&amp;#39;s more, the associated SharePoint logs won’t point to this xPath as a source of the error, leaving you to find this only by trial &amp;amp; error debugging. Isn&amp;#39;t that wonderful?&lt;/p&gt;&lt;p&gt;Now, before you throw up your hands and say you don&amp;#39;t have the time to manually examine every single rule in your complex form template, there&amp;#39;s an easy&amp;nbsp;way to do this: export the source files (File -&amp;gt; Publish -&amp;gt; Export Source Files) then find the file called manifest.xsf and open it in a text editor,&amp;nbsp;such as Notepad.&amp;nbsp; Then simply search for &amp;quot;//my&amp;quot; and, if you have&amp;nbsp;any data connections in your form, also search for&amp;nbsp;&amp;quot;//d&amp;quot;&amp;nbsp;- this will locate only double forward slashes in the xPath expressions in your template.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So, next time you get a browser publish error alert and InfoPath&amp;#39;s Design Checker doesn&amp;#39;t show any errors, check your xPaths and see if any of them contain double forward slashes.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Happy Form Designing!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;~Jen &lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=98244" width="1" height="1"&gt;</description><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/xpath/default.aspx">xpath</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/publish/default.aspx">publish</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/infopath/default.aspx">infopath</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/forward/default.aspx">forward</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/browser/default.aspx">browser</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/slash/default.aspx">slash</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/error/default.aspx">error</category></item></channel></rss>