Can we populate Hint dynamically for a field in ServiceNow when we hover mouse over the field?

kBahu
Tera Expert

Need to populate Hint dynamically for a field in ServiceNow when we hover mouse over the field, any suggestions would be helpful.

kBahu_0-1734685884105.png

 

Thanks.

1 ACCEPTED SOLUTION

For everyone who wants to refer, below worked in scoped application

g_form.getControl('assigned_to').title = 'Test';
 
so looks like ''gel'' or ''document.getElementById()'' doesn't work in scoped app but ''g_form.getControl()'' works fine.

View solution in original post

16 REPLIES 16

Musab Rasheed
Tera Sage
Tera Sage

You can try with DOM manipulation solution but ServiceNow doesn't recommend doing it. Please inform client saying its a limitation with ServiceNow

Please hit like and mark my response as correct if that helps
Regards,
Musab

Runjay Patel
Giga Sage

Hi @kBahu ,

 

You can write below in your client script.

document.getElementById("label.incident.assignment_group").title ="test";

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Hi @Runjay Patel - I am working in a scoped application and using onLoad Client script, but it is not working for me

kBahu_0-1734942630207.png