g_tabs2Sections is not defined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2022 06:03 AM
Our team is trying to use g_tabs2Sections.deactivate() in an onLoad client script, but keep getting a console error saying g_tabs2Sectionsis not defined. We tried adding global in front and even cloned the client script in the global scope to see if that would work, but still getting the same error.
Our onLoad client script looks like this:
var sections = g_form.getSectionNames();
for(var i=0; i<sections.length; i++){
if(sections[i] != 'position_data'){
g_tabs2Sections.deactivate();
}
}
Any suggestions? Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2022 08:39 AM
Hi Davilu,
I have tested your script in my instance and it works
What table are you trying to run this script on?
Are you trying to use this on a scoped table?
Kind Regards,
Shane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2022 09:55 AM
Thanks Shane! I think I misunderstood what that does. I thought it deactivated that entire section, not disable tabbed UI. Thanks for looking into it.