I have an infopath form which has two views
- Create Request
- List of all submitted Forms
I am getting the second view with the help of a secondary dataconnection to the SharePoint submit library and using a repeating table to show the details.
To open any existing form that was submitted i have created a hyperlink field
(Insert > Hyperlink selected the URL field and the Title field from the dataconnection)
in repeating table when clicked opens the form, everything works prefect but my only problem is the form opens up in a new window is there way to open the form in the same window.
Tried Changing the View.xsl
<a onclick="BLOCKED SCRIPTNewItem2(event,'');return false;" target="_self">
<xsl:attribute name="href">
<xsl:value-of select="d:URL"/>
</xsl:attribute>title </a>
above example opens the link in the same page but the link is not populated the right way because the removed `class="xdDataBindingUI" xd:disableEditing="yes"` from the hyperlink anchor tag.
<a onclick="BLOCKED SCRIPTNewItem2(event,'');return false;" target="_self" class="xdDataBindingUI" xd:disableEditing="yes">
<xsl:attribute name="href">
<xsl:value-of select="d:URL"/>
</xsl:attribute>title </a>
When i include the class the URL is populated correctly but its opening in a new window rather than the same window.
Let me know if there is a better approach.