This topic is locked

Find active tab index on list page

4/11/2024 3:28:32 PM
PHPRunner General questions
C
chandoshi authorDevClub member

How can I find the index of an active tab on a list page. The following code seems to work on add and edit page only

var tabs = pageObj.getTabs();
var idx = tabs.activeIdx();

Sergey Kornilov admin 4/11/2024

This API is for tabs that can be added to Add/Edit/View pages.

If you are talking about WHERE tabs on the List page you can read tab name parameter from the URL and base your logic on that info.