How to show help text based on user company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2026 04:20 AM
Hi Team,
How to show help text based on user company.
I have a company called "Jordons" for this company I want to show help text.
for remaining companies I don't want to show help text.
For this I have client script written,
On Change
script is not working, what changes required
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2026 04:41 AM - edited 05-05-2026 04:43 AM
As ServiceNow does not have a native setHelpText() method in the standard g_form API and the best practice is to use g_form.showFieldMsg();
e.g.
g_form.showFieldMsg('short_description', 'Welcome Jordans Team! Please follow internal guidelines.', 'info');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2026 04:42 AM
Just use a ui policy. Set it to trigger only on that company and in the action use the variable name and the field message option. No need for scripting at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2026 04:42 AM
you can't show/hide help text dynamically near variable
Either you show it completely or don't show
you can show field message near that variable using g_form.showFieldMsg() or g_form.hideFieldMsg()
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2026 05:05 AM
Hi @Sriram Pusuluri ,
Check the steps and screen shot from this post for the workaround as Servicenow does not provide this dynamic help text feature OOB.