How to determine whether the fields on the form are displayed in the client script

zx
Tera Contributor
How to determine whether the fields on the form are displayed in the client script
1 REPLY 1

Shaqeel
Mega Sage

Hi @zx 

 

You need to use "isVisible()" function in the client script where you want to check the visibility of the field.

 

You can use following code:

 

var isFieldVisible = g_form.isVisible('field_name');

 

 

Replace 'field_name' with the name of the field you want to check.

The function will return true if the field is visible and false if it is not.

 

Regards

Shaqeel

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel