show Help-text under the field

Ajiteshsharma
Tera Contributor

Please help me how can I do it 

  1. Verify that I can see a new help-text under the Additional comments field: 
    1. "Visible to the employee even if it is confidential."

Ajiteshsharma_0-1700283758070.png

 

3 REPLIES 3

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Ajiteshsharma ,

 

I think that message which is appearing is coming from onLoad Script whenever the specific form loads. Can u please check on the table where u have opened the record is there any onLoad client script. U should be able to find that message over der. Replace it with what u would like.

 

Thanks,

Danish

 

Brian Lancaster
Tera Sage

This isn't help test but a client script or UI policy with a script g_form.showFieldMsg('field', 'text you cant to display', 'info'). You can also user error in place of info the only difference is instead of a blue box it will display as red.

Sandeep Rajput
Tera Patron
Tera Patron

@Ajiteshsharma Here is the code you need to use inside a client script to show message.

 

 

g_form.showFieldMsg('comments','Please add a comment here','info');

 

 

For more information please refer to https://docs.servicenow.com/bundle/vancouver-application-development/page/script/useful-scripts/refe...