I have successfully added and saved custom first name and last name fields using the instructions at:
However, I have not been able to find documentation on retaining previously entered values in the signup form, upon validation errors.
For example: if I enter a first name, but leave the last name empty, as expected, I see a validation error for the last name, but the previously entered first name field is now blank.
Is there a way to ensure previously entered custom field values are retained in the form?
Hi @warren.harrison,
The user should not be able to complete the sign-up process until they have provided both their first and last names. If the last name is left empty, a validation error will appear for that specific field, stating that the field is missing an input. Only after the user provides both inputs can they proceed with registration. See this documentation mentioning client-side validation.
For example:
<div class="ulp-error-info"
data-ulp-validation-function="validateFirstName"
data-ulp-validation-event-listeners="blur,change,input">
First Name is Required
</div>
This seems like what you need to perform client-side validation on these fields.
Let me know if you have any further questions.
Thanks,
Rueben
1 Like
That did the trick. Thank you!
1 Like