Error Message with SIL Validator

haa February 1, 2021

When I use the Regular Expression Check (JSU) validator I can set an error message.
According to
https://community.atlassian.com/t5/Jira-questions/Why-does-the-validator-not-show-the-error-message-on-Field/qaq-p/1376065

you can show a message when in the validator with in ScriptRunner


throw new InvalidInputException("message")

 How do I do that in a SIL script?

How do I do this when validating fields in SIL script?

 

1 answer

0 votes
said kouzibry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 25, 2021

In sil you would do it like so :

return false, "fieldName", "Error message;

Suggest an answer

Log in or Sign up to answer