Activate Child (Sub-tab) on load

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
dap53
Posts: 3
Joined: Thu Nov 05, 2015

05 Nov 2015

We have a display form and edit form that contains parent tabs with child (sub-tabs) inside the parent. So when the user wanted to edit particular sub-tab it reverts to edit form. It need to maintain focus on the same sub-tab in edit form too. I can only activate parent tab, Is there any way to activate the child tab to maintain the focus?

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

06 Nov 2015

Simply add the following line to the JS editor of your display form, substituting YourList for whatever is the name of your list (check the URL path).

Code: Select all

$.cookie('formsdesigner_last_url', "/Lists/YourList/fd_Item_EditForm.aspx?ID=" + window.top.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests