Page 1 of 1

Activate Child (Sub-tab) on load

Posted: 05 Nov 2015
by dap53
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?

Re: Activate Child (Sub-tab) on load

Posted: 06 Nov 2015
by rostislav
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.