How to make field msg in bold text by using client script?

Ashwini Jadhao
Giga Guru

Hi,

Can we display field msg in bold without DOM?

or is there any other solution to make it bold for example UI macro?

In My case filed msg is changing based on the value selected from select box variable. 

could you please suggest me the solution as per the best practices?

 

thank you!!

1 ACCEPTED SOLUTION

Above changes are related with Native UI forms.

If you want to do similar things on Catalog Forms for Variables then you can use UI Macros (In Native UI), Widgets (for Portal)

Also you can create rich text Label variables.

find_real_file.png

Add HTML element with style of your choice.

You can handle visibility of these variables using g_form API's. Add label after each variable and show/hide by client script based on your conditions (if that UI works for you).

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

3 REPLIES 3

Anil Lande
Kilo Patron

Hi,

It is not possible to set different font/style to Info Messages or Field Messages.

But you can check below possibilities to add different help texts or messages on form.

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/workspace/task/set-up-fo...

https://docs.servicenow.com/bundle/rome-platform-user-interface/page/administer/navigation-and-ui/ta...

https://community.servicenow.com/community?id=community_question&sys_id=c2f887a1db5cdbc01dcaf3231f96...

 

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Above changes are related with Native UI forms.

If you want to do similar things on Catalog Forms for Variables then you can use UI Macros (In Native UI), Widgets (for Portal)

Also you can create rich text Label variables.

find_real_file.png

Add HTML element with style of your choice.

You can handle visibility of these variables using g_form API's. Add label after each variable and show/hide by client script based on your conditions (if that UI works for you).

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Himanshu Gupta1
Mega Guru

Hi,

You can do all this customizations on a UI page and then call your message in that UI page and call that UI page in your client script.

 

Please mark my answer helpful if your issue is resolved

 

Best Regards

Himanshu Gupta