How to add HINT

nameisnani
Mega Sage

We have requirement on change table . 

 

We have add new field called ' Backout Options ' under Planning section .

 

The field should be display right after 'BackOut Plan '.

 

Field should be select Box . 

 

Field Name :- Backout Options 

 

Below are options to be displayed 

Tested Backout - (This specific change has been implement in NonProd or Prod and backed out successfully )
Untested Backout - (Back Out procedure is documented and available but has not been tested)
No Back Out - (This change cannot be backed out.)

 

NOTE - Based on the options selected Which are brackets those texts are HINT .

 

I have created the new field 

nameisnani_0-1717578937620.png

 

But how to add HINT text based on the options selected .

 

Please prvoide steps and screenshot for better understanding .

11 REPLIES 11

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @nameisnani 

 

https://www.servicenow.com/community/now-platform-forum/how-to-populate-hint-text-based-on-drop-down...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @nameisnani ,

 

FYI > You cannot set dynamic help text directly

Instead you can make use of the below onchange client scipt to show or hide field message. (based on your condition you can change the script below )

 

if(newValue == 'tested_backout' ) {
g_form.ShowFieldMessage('backout_option', 'your text', info);

} else if (newValue == 'untested_backout'){
g_form.ShowFieldMessage('backout_option', 'your text', info);
} else if (newValue == 'no back out'){
g_form.ShowFieldMessage('backout_option', 'your text', info);
}

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Hi @Sohail Khilji 

 

showing error 

nameisnani_0-1717583507623.png

 

share the code you tried...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect