How to determine whether the fields on the form are displayed in the client script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 02:03 AM
How to determine whether the fields on the form are displayed in the client script
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 02:22 AM
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