Skip to main content


 

Symptoms


How to remove links to parent list/site from New/Edit/DisplayForm.aspx pages on SharePoint-associated SmartForms.
 

Diagnoses


Possible by removing the _pageTitle element or editing the /K2Pages/ ASPX files, though in the latter option any changes will be overwritten when the registration wizard is run.
 

Resolution

Workaround:
- Browse to the /K2Pages/ directory off your SharePoint site collection (i.e. https://portal.denallix.com/sites/MySiteCollection/K2Pages/)
- Click the ellipsis on NewForm and 'Download a copy'
- Open the ASPX file in a text editor and add the following line below but within the "function jqueryScriptLoaded()" definition and above "function setIframeSource()" (see attached image):

$('_pageTitle').remove()

- On the K2Pages site, click 'Files' in the ribbon and then 'Upload Document', selecting your edited form.

On this site collection, your appified SharePoint lists' "new item" forms should be without page title. Note that if the Registration Wizard for the K2 for SharePoint app is run, it will reset these ASPX pages to their defaults, erasing any changes.


The more permanent solution that I would recommend would be to modify your SharePoint masterpage, adding the previous script thusly:

<script> $('_pageTitle').remove() </script>




 
Be the first to reply!

Reply