The problem: I'm making updates to a Community which uses a login flow and self registration for users. I've noticed that it is possible for users to register without providing any input for First Name, which is a problem and needs to be fixed.
My question: How can I create validation to ensure that users always provide both a first & last name when doing self registration? Can I use Javascript on a self register page? I would like the solution to be client-side validation on the same page -- I don't want to have the validation re-direct the user to an error page, it must be on the same page.
Please keep in mind that I'd like to avoid customising any apex controllers as much as possible. However I realise that I might have to in this case.
Thanks in advance!