is there any method in client script to find whether field is hidden or visible?

Narayana Swamy
Tera Contributor
 
4 ACCEPTED SOLUTIONS

Sainath N
Mega Sage
Mega Sage

@Narayana Swamy : Please use below. It will return true if the field is visible.

 

 

 

g_form.isFieldVisible('your_field_name');

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

View solution in original post

Tai Vu
Kilo Patron
Kilo Patron

Hi @Narayana Swamy 

You can give the API below a try, it's undocumented but should do the trick.

 

g_form.isFieldVisible('<field_name>'); //true if visible and false if invisible

 

 

And also this one.

Screenshot 2023-12-28 at 11.15.43.png

g_form.isVisible(g_form.getGlideUIElement("field_name"), g_form.getControl("field_name"))

 

Cheers,

Tai Vu

View solution in original post

Prathamesh G
Kilo Sage
Kilo Sage

Hello @Narayana Swamy 

 

Please use the below code from the client side to find out the field is Visible or not. It will give you the 'TRUE/FALSE' value to show the field is visible or invisible.

 

g_form.isFieldVisible('<field_name>');

 

If the above solution resolve your issue, Please mark the solution as 'Accepted Solution' and also mark it as 'Helpful'.

 

Thank You!

Prathamesh.

View solution in original post

Harish Bainsla
Kilo Patron
Kilo Patron

Hi you can use 

g_form.isFieldVisible('field name');

for more you want to explore g_form see below link

https://blog.snowycode.com/post/glide-form-cheat-sheet

 

View solution in original post

5 REPLIES 5

Sainath N
Mega Sage
Mega Sage

@Narayana Swamy : Please use below. It will return true if the field is visible.

 

 

 

g_form.isFieldVisible('your_field_name');

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Tai Vu
Kilo Patron
Kilo Patron

Hi @Narayana Swamy 

You can give the API below a try, it's undocumented but should do the trick.

 

g_form.isFieldVisible('<field_name>'); //true if visible and false if invisible

 

 

And also this one.

Screenshot 2023-12-28 at 11.15.43.png

g_form.isVisible(g_form.getGlideUIElement("field_name"), g_form.getControl("field_name"))

 

Cheers,

Tai Vu

Prathamesh G
Kilo Sage
Kilo Sage

Hello @Narayana Swamy 

 

Please use the below code from the client side to find out the field is Visible or not. It will give you the 'TRUE/FALSE' value to show the field is visible or invisible.

 

g_form.isFieldVisible('<field_name>');

 

If the above solution resolve your issue, Please mark the solution as 'Accepted Solution' and also mark it as 'Helpful'.

 

Thank You!

Prathamesh.

Harish Bainsla
Kilo Patron
Kilo Patron

Hi you can use 

g_form.isFieldVisible('field name');

for more you want to explore g_form see below link

https://blog.snowycode.com/post/glide-form-cheat-sheet