- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2020 03:18 AM
g_form.setDisplay('variable_name', false); not working in service portal where as its working in legacy view properly - what I need to do to make it work in service portal.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2020 03:20 AM
Hi,
May I know, in which script you are applying this?
Check UI type of script it should be set to ALL

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2020 03:34 AM
1)Is it a client script? If yes check the UI Type and make sure its set to All.
2) Try setVisible instead
3) Also check if any fields are supposed to be mandatory and because of which the field is not showing up/hiding.
4) If its a variable set, then it wont work for setDisplay in Portal due to limitations.
Please Mark as ✅ Correct if this solves your issue and also mark ???? Helpful if it helps resolve your problem.
Thanks,
Saji