Required Fields on Registration Form?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hello All,
Is there a way to make a field required on the registration form?  I want to make company name required.  Also, is it difficult to extend the fields in the registration form?

Thanks for the help!
12 years ago
madv1457 wrote:
Is there a way to make a field required on the registration form?

1. Open \Presentation\Nop.Web\Validators\Customer\RegisterValidator.cs file
2. Add the following line to it: RuleFor(x => x.Company).NotEmpty().WithMessage("Company is required");

madv1457 wrote:
Also, is it difficult to extend the fields in the registration form?

No. Have a look at changeset a179ce882d6b (will be included in v2.20)
12 years ago
Thanks Andrei, so it looks like I need to be running the source for this to make the change correct?
12 years ago
Right
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.