This topic is locked

Asprunner 6.3 - Conditional Tab?

11/6/2010 11:22:55 AM
ASPRunnerPro General questions
D
dmulberry author

Is there a way to make a tab within an add/edit form visible based on specific data?

admin 11/11/2010

Here is how you can hide the tab in Javascript OnLoad event.

pageObj.tabs['tabGroup_New_tab_11'].removeTab(pageObj.tabs['tabGroup_New_tab_11'].getTab(2));


In this example tabGroup_New_tab_11 is the name of tab group. To find this name proceed to the Edit page, make tab group selected and switch to HTML mode. Tab name will be highlighted.
In getTab(2) 2 is a tab index (zero based). 0 - first tab, 1 - second tab etc.