- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2017 11:42 PM
Hi ,
My requirement is i have a drop down field with two option
1.Hardware
2.Software
when i select software under that i need a annotation "----".It should only visible for software choice.
How to do this?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2017 11:54 PM
HI Rajanandini
You can create a onchange client script that will show the field message below the filed. you can use the function g_fomr.showFieldMsg() for this. See the below link for more details.
GlideForm (g form) - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2017 11:50 PM
Hi,
Is this a table form or catalog item?
Instead of annotation, you can use fieldmessage on the field through client script.
Display Field Messages - ServiceNow Wiki
Please mark correct/helpful based on the impact of the response.
Thanks
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2017 11:53 PM
Hi,
Catalog Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2017 11:55 PM
But the requirement is to add annonation to that particular choice value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2017 12:00 AM
On catalog item, there is no annotations, This is available on the table forms only. You can put a client script if(SELECTED CHOICE IS SOFTWARE) then you can write the below script that will work
How to display error message next to a variable in the Service Catalog