Get Form Section Name

kemmy1
Tera Guru

I have a form section (tab) called Archive Problem Information.  I'm trying to show/hide it with an onLoad client script and this is not working:

function onLoad() {

    if(g_form.getValue('u_obim_problem') != ''){
        g_form.setSectionDisplay('archive_problem_information', true);    
        
    }
}

 

Where in the world can I find the backend name of the form section?  I've looked everywhere.  The sys_ui_section table does not give me the information.

 

Thanks!

Lisa

1 ACCEPTED SOLUTION

Rajesh Kannan G
ServiceNow Employee
ServiceNow Employee
sectionNameStringThe section name is lower case with an underscore replacing the first space in the name, and with the remaining spaces being removed, for example "Section Four is Here" becomes "section_fourishere". Other non-alphanumeric characters, such as ampersand (&), are removed. Section names can be found by using the getSectionNames() method.

 

Refer our documentation for more details.

Regards,

Rajesh

View solution in original post

5 REPLIES 5

Neelu90
Tera Contributor
In this video we are going to solve a problem that most of the Developers come across that is to find Section Names of the Form. Let's see - How to find Section Names of the Form? #servicenow #servicenowdeveloper #servicenowimplementation Write doubts and suggestions in the comment. Like, share ...