06-01-2019, 12:03 PM
The concept of usersc/scripts/additional_join_form_fields.php works great, but I am having trouble with the two parts of validation.
My fields get validated before submit, but on submit the original user form fields get validated, like username and email, and all my additional field inputs are gone if there is an error.
That is, the user fills out the complete registration page, including the standard fields and my additional fields, the validation confirms all my required fields, but on submit they lose their additional field inputs.
I think it's because my fields are validated when the submit button is pressed but prevent the form contents from being posted, but the original user registration form fields are validated only after being posted. At that point, the error messages are displayed at the top, but all my additional form fields are now blank. (I have several fields because they are essentially applying to register).
Is there an additional step I'm missing?
Eric
My fields get validated before submit, but on submit the original user form fields get validated, like username and email, and all my additional field inputs are gone if there is an error.
That is, the user fills out the complete registration page, including the standard fields and my additional fields, the validation confirms all my required fields, but on submit they lose their additional field inputs.
I think it's because my fields are validated when the submit button is pressed but prevent the form contents from being posted, but the original user registration form fields are validated only after being posted. At that point, the error messages are displayed at the top, but all my additional form fields are now blank. (I have several fields because they are essentially applying to register).
Is there an additional step I'm missing?
Eric