g_form.IsVisible('someControl') ??

Not applicable

Do we have a script method available to us to determine if a control is visible?

3 REPLIES 3

Rocky10
Tera Contributor
g_form.isVisible(g_form.getGlideUIElement("field_name"), g_form.getControl("field_name"))

Thank you Rocky! I guessed the g_form.getControl("field_name") as a parameter of the function, but did not realize it requires another parameter. How did you figure that out if you don't mind sharing?

Is this really working for you Paul because I don't think isVisible can take two parameters based on this link - https://docs.servicenow.com/bundle/london-servicenow-platform/page/build/service-portal/reference/cl...