We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Line breaks in showFieldMsg()?

Joey Wan Kenobi
Tera Guru

Hello,

Does anyone know of a way to insert line breaks in a field message within the showFieldMsg() method?

Tongue Twister not intended.

Thanks

18 REPLIES 18

This does work. Should be accepted answer.

What version are you on, I'm trying <br /> but it doesn't work. <br \> is incorrect HTML

It also didn't worked for me

Neither \n or <br> will work in a showFieldMsg. Why do people post this stuff without trying it themselves?

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul