Hide Sections on Service Portal

sajan_high_0192
Mega Contributor

Hi All,

using g_form.setSectionDisplay(sectionName, isVisible) is not hiding sections in service portal.

Dose any one know solution for this issue?

I am working on Helsinki.

Thanks,

sajan

23 REPLIES 23

Has this been fixed? I'm trying in Madrid patch 4 and still experience the issue of not been able to hide a section.

Nandana
Tera Contributor

Same Problem. It is working fine in London, but not working as expected after upgrading to Orlando. Has this been fixed?

rhodgins
Kilo Contributor

In version: Paris

GlideForm - setSectionDisplay(String sectionName, Boolean display)

sectionName String The 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.
display Boolean When true shows the section. When false hides the section.

 

function onLoad() {
    if (typeof spModal != 'undefined') { // we are in the Portal
        g_form.setSectionDisplay('notes', false);
    }
}

 

This works.  Note that this worked in my Scoped app as well.

Karina Torres
Tera Contributor

It is not working anymore on Washingtondc release, any other solution?