Field message in colour

daggupati
Tera Contributor

Hi, How can we display field message in color. for info message we can do like this (g_form.addInfoMessage("<font color='blue'>Hello world</font>");). For field message i tried like this(g_form.showFieldMsg('department','<font color="blue">Hello world</font>');) but is is not working. Any suggestions.

Thanks!!!

6 REPLIES 6

tanumoy
Tera Guru

Hi.. this is header message, but i need field message. it should display field message above the field.


Check the below links. They have added some link in the showFieldMsg... same way you can make the styles there.



Field Messages - showFieldMsg()



Generate link in client script gs.showFieldMsg


Hi Paul, I tried all the links. it's not working for me. when i write this line g_form.showFieldMsg('department','<font color="blue">Hello world</font>');   Hello world not coming in red color. The whole line (<font color="blue">Hello world</font>) is displaying in the field message.