- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2017 09:54 AM
Hi SNC,
I realized some time ago that the annotations that we add to form fields do not appear on Service Portal's Form Widget.
How can I work around this problem? Or better, how can I add an "annotation-like" title for example to a specific field on Service Portal's Form widget?
Thanks in advance,
Fábio Gonçalves
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2017 08:19 PM
Hi Fabio
I came across the same issue recently too so thought I'd post the fix I got to after doing some research - some suggest ServiceNow have categorised this as an enhancement but I think it does seem to be a bug in ServiceNow, but regardless in the meantime, you can get around it with a Client Script:
1) Search for Client Scripts module from the filter navigator
2) Click New to create a new client script and give it a Name
3) Select your table where your form is running off, ensure your UI Type field is set to Both (for some odd reason the script won't work on the Service Portal view if you set to Desktop only)
4) In the script section, you need to use a small script - showFieldMsg(String field, String message, String type) which is explained here. E.g. following this example, I put in the following for my field and text I wanted to display, so you can copy and paste the following script:
function onLoad()
{
g_form.showFieldMsg('u_first_name','this is my text.','error');
}
Then replace the above for your use case:
'u_first_name' - change this to the name of the field you want to display the text under
'this is my text' - replace with the text you want to display
'error' - error shows a red background, or replace with 'info' to show a blue background
5) Save the script - it will show similar to an annotation under the field on the Service Portal. The script record should look something like this below
Hope this helps - please accept this as the correct answer if it works for you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2017 11:35 AM
Hi Fabio,
I would suggest connect with Hi Team.
you can refer the link below. hope it will help you.
Annotations in ServicePortal - Form Widget
Thanks,
Harshvardhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 01:30 AM
Hi harsh vardhan,
I'm sorry, but what it the Hi Team exactly? I'm just no familiarized with the term.
Thanks,
Fábio Gonçalves
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2017 08:19 PM
Hi Fabio
I came across the same issue recently too so thought I'd post the fix I got to after doing some research - some suggest ServiceNow have categorised this as an enhancement but I think it does seem to be a bug in ServiceNow, but regardless in the meantime, you can get around it with a Client Script:
1) Search for Client Scripts module from the filter navigator
2) Click New to create a new client script and give it a Name
3) Select your table where your form is running off, ensure your UI Type field is set to Both (for some odd reason the script won't work on the Service Portal view if you set to Desktop only)
4) In the script section, you need to use a small script - showFieldMsg(String field, String message, String type) which is explained here. E.g. following this example, I put in the following for my field and text I wanted to display, so you can copy and paste the following script:
function onLoad()
{
g_form.showFieldMsg('u_first_name','this is my text.','error');
}
Then replace the above for your use case:
'u_first_name' - change this to the name of the field you want to display the text under
'this is my text' - replace with the text you want to display
'error' - error shows a red background, or replace with 'info' to show a blue background
5) Save the script - it will show similar to an annotation under the field on the Service Portal. The script record should look something like this below
Hope this helps - please accept this as the correct answer if it works for you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2017 03:47 AM