g_form.showFieldMsg background width adjustment.

snowcone
Giga Guru

The background of this message is displayed across the form from left to right.


g_form.showFieldMsg('impact','High priority');

How can I reduce the background size to limit it to the length of the sentence. No need of extra back ground.

Thank you

2 REPLIES 2

ravish2
Giga Expert

You can add html into your message in that way you can remove the extra background try making the bgcolor same as your form background color.



Adding HTML Example:


g_form.addErrorMessage('[b]From Error Message(Bold)[/b]');



In the same way it should be available for showFieldMsg also but i m not sure about this.


ravish2
Giga Expert

I tried it in my instance and its look like its not possible to add html in showFieldMsg. Anyways you can refer to » UI Info and Error Message Cheat Sheet it is very helpful page that gives you info about how to use info and error msg fields