Can we add formatting like adding line breaks, making text bold in an error message thrown from a custom validator script? Error is thrown on a JSM Portal from Create transition
ScriptRunner version: 8.3.0
I don't think you can do that with a validator script.
But it should be possible with a behaviours validation. The "setError" and "setHelpText" methods accept plain HTML.
This has the added bonus of flagging the error immediately upon entry rather than waiting for the user to click submit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.