- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 08:28 AM
I am trying to hide a field through onLoad. But setDisplay functionality is not working
Solved! Go to Solution.
- Labels:
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 08:32 AM
If you want to hide a filed you should be using g_form.setVisible(name, visibility).
g_form.setVisible('u_ct_app', false);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 08:32 AM
If you want to hide a filed you should be using g_form.setVisible(name, visibility).
g_form.setVisible('u_ct_app', false);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 08:45 AM
You could also use a UI Policy instead. That way you do not have to worry about writing a script to make it visible again since it reverse is false will take care of that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 08:33 AM
What's data type of u_ct field?
Please add alert() statement to print value of u_ct field in your client script?
MAke sure that you are checking for choice list value NOT label if it's choice field.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 09:44 AM
Yes sachin. i tried but OOB functionaly not working