What is "isAdvancedUI"

Tepp
Tera Expert

Hi,

 

THE UI action "Insert and Maintain" condition " isAdvancedUI() && current.canCreate() && (!current.instanceOf('task') glide.ui.task.insert') is a .true') && (!current.instanceOf(sys_db_object')))
 
 
What does this "isAdvancedUI" mean?
 
If "isAdvancedUI" is conditioned, it does not appear in "Insert and Maintain" in the context menu.
 
best regards,
1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

I believe that refers to if you clicked the "advanced" button to make the UI change to show additional settings/features not normally present.

So it's saying as part of the condition, the UI should be in advanced view mode and then all the other condition points as well for the "Insert and Maintain" option to appear.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

I believe that refers to if you clicked the "advanced" button to make the UI change to show additional settings/features not normally present.

So it's saying as part of the condition, the UI should be in advanced view mode and then all the other condition points as well for the "Insert and Maintain" option to appear.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

The SN Nerd
Giga Sage
Giga Sage

isAdvancedUI() checks to see if the following System Property is enabled:

glide.ui.advanced

Description:

"Show "Save", "Insert" and "Insert and Stay" buttons on forms."

It also checks if the user has this preference enabled, however, I am not aware of any way for users to set this for themselves.

function isAdvancedUI() {
    var user = gs.getUser();
    var pref = user.getPreference("glide.ui.advanced");
    if (pref == null || pref == "") {
        pref = gs.getProperty("glide.ui.advanced");
    }
    return pref == "true";
}

ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022