Service Portal - Dynamic HTML Content

arnabbose
Tera Expert

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?

find_real_file.png

8 REPLIES 8

Saikiran Gudur1
Mega Guru

HeyArnab,



Can we know how do you implemented this page? And from where exactly the highlighted HTML Content is coming from?


find_real_file.png


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)


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...