Code to change Section Name using g_tabs2Sections

kumarsatyam
Tera Expert

Hello SNOWers,

Can anyone suggest me how can i write code using g_tabs2Sections to rename my Tab.

Note : In Application Scope DOM not works . So i have tried everything.

In this link i got some methods for g_tab2Sections but to rename tab there is no such functions given even in console i don't

got any method .

pradeepksharma shloke04 ctomasi

Client Script Action to click on Section tab

Regards Kumar

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Kumar,



In the standard forms UI (eg client scripts, client ui actions) - by default, we block access to the DOM and certain top-level globals (window, document, $ / jquery). You can enable an application-specific property to gain access to the DOM.


You can enable an application-specific property to gain access to the DOM. This provides a good tradeoff by setting a default with best practice guard rails, and allowing a developer to take explicit action to opt out of the best practice.



With the explicit property ServiceNow can:


On store submission, know that an app wants raw DOM manipulation and can pay more attention to it in the certification process Give it a lower "upgradability/maintainability" score Warn the developer on submission that they are going to need to re-certify the app on every major release, etc.


To opt out of the best practice create the following property in your scope and set it to false. glide.script.block.client.globals


View solution in original post

5 REPLIES 5

vinitha Your Code Worked After applying this property.



Thanks Kumar



Application Developer


!nMorphis Services Pvt Ltd


kumar.satyam@inmorphis.com


+91-9560887808