Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to add HINT

nameisnani
Giga 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

Hi @nameisnani 

 

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

 

****************************************************************************************
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
******************************************************************************************

Not applicable

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);
}

 

 

Hi @Community Alums 

 

showing error 

nameisnani_0-1717583507623.png

 

Not applicable

share the code you tried...