Handling Form errors and exceptions

Hey guys,

I’m trying to work on the registration form errors. For example I’ve got an error in case the user hasn’t filled all the form fields. I’d also like to create an error if the username is taken. Right now, Kirby throws an exception. Is there a way to return to the homepage and displaying an alert which says that instead?

Would love some guiding to the right place if that’s possible :slight_smile: Thanks!

This post might be helpful: A carefully written question about user-facing forms

Also this gist, while it’s all about sending emails, the idea is the same.