Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How Can I check variable's visibility?

Sisozuki1
Kilo Contributor

I want to check variable's visibility on catalog item script.
I tried g_form.isVisible() function, but it didn't worked because of below error.

"ge.getElementParentNode is not a function"

Anyone meet with same situation?

4 REPLIES 4

Tony Chatfield1
Kilo Patron

Hi, you may need to provide some additional details about exactly what you are trying to do.
Are you trying to programmatically check if a variable field is visible to end users?

I am not sure if there is a method g_form.isVisible()
but g_form.setVisible() would show or hide a form field in the UI.

 

 

 

 

>Are you trying to programmatically check if a variable field is visible to end users?
Yes. Purpose is only check if a variable field is visible in client catalog script.
(Why need that and how I use result of check is very complexly. So I omit that.)

 

Do you know any way to check that?

@Sisozuki 

You cannot determine if variable is visible or not using script

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

shabbir5
Tera Guru

you want to use variables in scripts ? please provide more information.