Plugin Admin config form with validation

Hi, i followed the tutorial here and i was able to get a form showing up.

But if i want to validate the form, what is the best practice or jira recommended way of doing this.
eg: want to see if value entered in text field is valid, if not show error like we do in “Create Issue” form.


Hello, maybe this can guide in the correct direction? Form Validaiton