Skip to main content
Nintex Community Menu Bar

We have a classic Nintex form in SharePoint 2016 on-premises with a label control that contains some static hyperlinks to documents related to the form which users may need to reference when filling out a new item form.  When creating a new form from the “+ new item” link at the top of the SharePoint list view, the form opens in a dialog and clicking on the hyperlinks in that control opens the documents in a new tab.  However, if the user opens the NewForm.aspx in its own tab so the form is not a floating dialog box, clicking on the same hyperlinks will not open the documents in a new tab and navigates them away from the form page, therefore any information the user entered in the form up to that point ends up being lost. Does anyone know if there is some way to configure the links/control settings so they will always open in a new tab regardless of the mode/method used to open the new item form in the user’s browser?

This is an example of the HTML source from the text format of the label control settings:

Reference these documents: 
<span id="NWRTEReference1">
<a class="ms-rtestate-write" onclick="selectThis(this);" contenteditable="true" href="javascript:void(0);" link="true" reftext="Corporate%20Card%20Request" reflink="https://intranet/documentcenter/Finance/Corporate%20Card%20Request.xlsx" style="text-decoration: underline; color: blue;">UCBI Corporate Card Request</a></span>​ &amp;
<span id="NWRTEReference2">
<a class="ms-rtestate-write" onclick="selectThis(this);" contenteditable="true" href="javascript:void(0);" link="true" reftext="Cardholder%20Policy" reflink="https://intranet/documentcenter/Finance/Cardholder%20Policy.pdf" style="text-decoration: underline; color: blue;">

Any ideas you can offer would be greatly appreciated.

Test to see if maybe using the `target` attribute would solve your problem. Setting its value to “_blank” as shown in the example code below, should force the link to open in a new window or tab (based on some other context that’s unnecessary to get into here).

 

Reference these documents:
<span id="NWRTEReference1">
<a target="_blank" class="ms-rtestate-write" onclick="selectThis(this);" contenteditable="true" href="javascript:void(0);" link="true" reftext="Corporate%20Card%20Request" reflink="https://intranet/documentcenter/Finance/Corporate%20Card%20Request.xlsx" style="text-decoration: underline; color: blue;">UCBI Corporate Card Request</a></span>​ &amp;
<span id="NWRTEReference2">
<a target="_blank" class="ms-rtestate-write" onclick="selectThis(this);" contenteditable="true" href="javascript:void(0);" link="true" reftext="Cardholder%20Policy" reflink="https://intranet/documentcenter/Finance/Cardholder%20Policy.pdf" style="text-decoration: underline; color: blue;">Some Other Random Document</a></span>

 

Let me know if that works


Thank you for your reply! I tested using the target="_blank" attribute in those links, but the behavior is the same, unfortunately. The links only open the documents in a new tab when the new item form is opened from the “+ new item” link at the top of the SharePoint list view to open the form in a dialog box on the list view page. We have a separate SharePoint page with an embedded Nintex “List Form” web part that displays the same form in “New” mode, and if a user clicks on the document links within the form from that page, the documents do not open in a new tab. It is the same when browsing directly to the NewForm.aspx URL as well. I am not sure why that is happening, but it looks like we will need to find another method to prevent this issue when users are filling out the form from the web part.


Reply