- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 07:28 PM
Hey all,
I'm looking for the best method for a Client Script to determine if a field is visible on a form. Searching around, I found the following but it doesn't seem to work. The field I'm cocerned with is "support_by" and I'm using the comments field just to determine the result of the if statement.
if (g_form.isVisible('supported_by')) {
g_form.setValue("comments","Visible");
} else {
g_form.setValue("comments","Not Visible");
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 07:49 PM
the correct method for your use case is:
g_form.isFieldVisible('FIELD NAME');
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 07:49 PM
the correct method for your use case is:
g_form.isFieldVisible('FIELD NAME');
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 07:53 PM
Excellent. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 07:58 PM
Hi kindly check this code