Service Portal - Dynamic HTML Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 10:55 AM
Hi,
Based on Company of user, below highlighted lines are supposed to appear / disappear on homepage on my SP.
I can use gs.getUser().getCompanyID() in Server Script to publish different results based on Company but how can I make the HTML Texts disappear based on that?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 11:12 AM
HeyArnab,
Can we know how do you implemented this page? And from where exactly the highlighted HTML Content is coming from?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 11:17 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 11:46 AM
Hi Arnab,
Just found this piece Widget scripting. Check it out.
If you found this helpful click on Like.
Regards,
Saikiran Guduri
(Certified ServiceNow Administrator)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 01:20 PM
How can I use server side object to determine whether I will display a HTML content line OR not?
I am not looking to display an data.answer here...The entire HTML line should disappear...