Answered
Hi Community,
messages in a MessageBox has to be often very simple, because the text cannot be formatted alot.
But there are just some JavaScript-codes which allow text formatting or adding special characters.
Basic codes are [b]\r[/b] or [b]\n[/b] for line breaks, everybody knows that.
Some of you also may know [b]\t[/b] can be used to add a tab stop.
There are many more codes, most of them usable for special characters such a copyright sign, registered sign or arrows and lines.
See this example form for more details:
https://share.acrobat.com/adc/document.do?docid=02f0fec8-f0bf-4ba7-a891-cf340c8515cb
:-)
xfa.host.messageBox("This 'h' value field can only:\r \7 be left empty, \r \7 have a value of 0, or \r \7 have an 'h' range value of between " + HazMin.rawValue + " and " + HazMax.rawValue + " (incl.). \r Please re-enter.","Incorrect Hazard ('h') factor",3);
It makes the message box look so much more professional.
Thanks Radzmar
from way... underground at Parkes - central West NSW - Australia