trying to hide a tab on a multitab page...
using this code
What value should I be inserting in the first variable field? 0?1? etc?
doesn't seem to work...any ideas.
The first parameter should be the index of the tab (0-based).
Please can you explain 0-based.
Is the first tab 0, then what is the third tab? 3?
Yes the first tab index would be 0,so accordingly third tab index would be 2 (it goes like 0, 1, 2...and so on).
Thanks but 0 works and first tab is hidden. Any other value does not hide the subsequent tabs.
Does the HTML have to be on the specific tab or can it be in one central point on the '0' tab screen?
Sorry - but I am not very technical.
I am sorry can you please give more details about the use case?
This is the code which is included on the first tab screen.
It hides Tab 1 (i,e, zero statement), but Tab 3 is not hidden.
I have also added the second statement within the tab 3 screen - but no luck either.
The script works for me,hiding both the tabs.I am not able to reproduce the issue,can you please share the sample app.
Are you embedding in the page or applying onload()?
You can embed script component on page and execute your script that does tab hide on a callback of Pagerender event.
Added sample script below for you reference,
rb.newui.util.addEventListener(rb.newui.util.customEvents.rbs_pageRender,hideTabs); // Custom page render event
//this is for old UI
Hope this helps,
This seems to be an erro relating to the old UI - I have tried it on the new UI and old works well. Only tab 1 hides on the old UI. Have tried across different screens in the old UI (same error). while works fine in the new UI.
Can it be investigated/fixed?