Hello,
I am trying to improve my User Experience by grouping all validators in one unique validator to display only 1 error message during transition.
Let say I want to check that:
- the field Assignee is not empty
- time has been logged if no time was logged on the issue before
Until now, I was using 2 validators: Fields required and Script Validator. But 2 error messages
I am now using 1 Scipt validator to check Assignee AND time spent. I would like my error message to appear on the field on not above the transition screen.
Is it possible to have several exceptions displayed on many fields? How to do it?
Thank you for your help
Romain
Hey!
Just to share with the Community, we found the solution. You can create your exception and then add errors one by one on the fields you want. They will be displayed under each field and not on front of the transition screen.
invalidInputException = new InvalidInputException()
invalidInputException.addError("worklog_timeLogged",error_time_spent)
invalidInputException.addError(ef.id,error_estimated_effort)
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.