Hi,
I want my SIL validator to return a following message:
"Following fields cannot be empty:
* Field1
* Field2"
However, when validator returns above message, it removes all line breaks and condenses everything to a single-line sentence.:
"Following fields cannot be empty:* Field1* Field2"
I've tried all the nice and nasty tricks that came to my mind, and none of these worked:
* putting \n instead of normal line breaks
* putting \\\\
* putting <br>
* putting
* returning array of strings instead of a single string
Is there any workaround to achieve a multiline validator message through SIL?
Hello,
Kindly try \n
Hi,
I mistyped slashes here, but of course in the code I've tried "\n" (already corrected above).
On screen it was just removed from message, but didn't cause it to break into new line.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just made some research. You will not be able to do it because the message is escaped in Jira's vm template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dang, Wish I could escape escaping by injecting code in right format:) Anyway, thanks for the effort and finding a source of the problem!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I always typing “\r\n” (without quotes) for line breaks with sil or JavaScript
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good hint:) Unfortunately not working in validation message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.