Jump to content

Changing field to 'required' in registration form


tumil

Recommended Posts

Hi,

by editing classes/Address.php i managed to change two of registration fields to required.

It's okay, they are required now but people who are filling the form don't see it, because is not shown next to the field. Only the error shows when they click 'register' after not filling this fields.

How can I add those mandatory stars next to fields' names?

 

And the second thing is that I don't like the names of fields in the error box:

zxcc.jpg

As you can see, there's e.g. "passwd" and "nr_vat". How can I change those to full names?

 

Thanks for help.

Edited by tumil (see edit history)
Link to comment
Share on other sites

Field names are set in theme's translation and they're okay but error message doesn't show field name but these names.

For example:

In translation "Password" is "Hasło" but error shows: passwd

Link to comment
Share on other sites

For the first issue, you'll need to edit address.tpl, find the <label> for the optional fields that are now required, then add <sup>*</sup> before the </label>.

 

For the second issue, changing the "Field name translations" should have worked. Make sure you'd selected the right language. You can double-check whether they've saved correctly in translations/<lang_iso>/fields.php.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...