- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 08:13 AM
I have a problem with the following requirement :
If i choose "Value 1" of field "Test Choice" => It's will show annotation is "Text A"
else choose "Value 2" of field "Test Choice" => It's will show annotation is "Text B"
Is there any solution ? Please someone help me ! Thank you so much
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 09:15 AM
Hi @Dinh Nguyen ,
it not good idea to change the toop tip/instructions on the fly However you can have on change catalog client scipt to update field messages
ex scrript:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == "Value1") {
g_form.showFieldMsg("test_choice", "Selected value1");
} else if (newValue == "Value 2") {
g_form.showFieldMsg("test_choice", "Selected value2");
}
//Type appropriate comment here, and begin script below
}
Result :
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 09:16 AM
Hello @Dinh Nguyen
Instead of Annotation you can add Field Message on onChange Client Script :-
g_form.showFieldMsg();
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 09:15 AM
Hi @Dinh Nguyen ,
it not good idea to change the toop tip/instructions on the fly However you can have on change catalog client scipt to update field messages
ex scrript:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == "Value1") {
g_form.showFieldMsg("test_choice", "Selected value1");
} else if (newValue == "Value 2") {
g_form.showFieldMsg("test_choice", "Selected value2");
}
//Type appropriate comment here, and begin script below
}
Result :
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 09:33 AM
Hi @Dinh Nguyen ,
did this response help, if so
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 09:16 AM
Hello @Dinh Nguyen
Instead of Annotation you can add Field Message on onChange Client Script :-
g_form.showFieldMsg();
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh