Hide/Display Annotations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 02:15 PM
I have a form with a few fields and annotations "1" and "2". 1 has to display if the logged in user has a particular role and 2 otherwise.
I've tried using document.getElementById(<id>).parentNode.style.display='block'; on an OnLoad Client Script, OnChange Client Script and UI Policy. I've tried to declare document.getElementById(<id>) to a variable and modify the styling separately. Doesn't work.
I'm on Kingston. If anyone has any experience making this work, please suggest a solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 09:26 AM
Hi Rahul,
I've tried this and the results have been inconsistent. That's the reason I've posted it on the forum again.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 10:53 PM
Hi
http://blog.symfoniesm.com/use-form-annotations-as-sections-and-conditionally-hide-those-sections
https://www.servicenowguru.com/scripting/client-scripts-scripting/showhide-form-section/
Thanks,
Rahul Kumar