UI Actions - isAdvancedUI

gaidem
ServiceNow Employee
ServiceNow Employee

So in many UI Actions theres a condition: isAdvancedUI()
I've done some research and it seams that this is intended to qualify your browser to a boolean based on the following:
advancedUI = (isIE() && "5.5".compareTo(getIEVersion()) <= 0) //$NON-NLS-1$
|| (isMozilla() && isGecko())
|| (isSafari() && "120".compareTo(getSafariVersion()) <= 0); //$NON-NLS-1$

However, Service-Now doesn't seem to be actually evaluating this condition at all. I've find a property called glide.ui.advanced. The value is set to false. So it seems that this condition is checking this property.

So here's my questions:
What is the purpose of this condition? Even more curious about this condition if it's actually not checking the browser, but the static property.
Why is the property set to false out of the box?

2 REPLIES 2

gaidem
ServiceNow Employee
ServiceNow Employee

Ok, so let me add on to this.

This condition is in the Global Save button on insert. So the save button does not appear when creating a new record because the isAdvancedUI() condition is not met. Again, it is not met because the business rule checks a true or false value in the property. Which essentially is just a complicated way to setting the UI Action to inactive.

So again, the condition is checking a property that is always set to false, so the button will never show with this condition. My logic is then that this was done so that the button wouldn't show. However, if this was true why wouldn't the action just be set to inactive?

I don't want to touch the global UI action without fully understanding the reason behind this.

Basically I want the save button to show on insert...


I found the answer on the wiki:
http://wiki.service-now.com/index.php?title=Out-of-Box_Business_Rules

This function checks whether the value of the property glide.ui.advanced. If this property is true, it enable the advanced UI.

I just changed the property and now the SAVE button appears