• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Removing the 'required' bit from custom field?

Floren

Well-known member
#1
Hi,

I added 2 custom fields, first and last name.
I would like to remove the 'required' part and add it manually into field description, to make the registration form uniform:
First Name: [ ]
Required <-- I would like to remove this part
Your first name is required, i.e. John or Jean-Philippe. Once set, this cannot be changed.

Last Name: [ ]
Required
Your last name is required, i.e. Doe. Once set, this cannot be changed.

Date of Birth: [ ]
Your date of birth is required.
For a live example, please check the registration form to see what I mean:
https://www.axivo.com/community/

While playing with the custom fields, I noticed this behavior: If I select the Required option, the field will not display into registration form unless the Editable option is checked. I presume this is the way to disable a field, while preserving the previous data (untick Editable).
 

Floren

Well-known member
#3
Thank you for the tip. I added in EXTRA.css:
Code:
dl.ctrlUnit dfn
{
    display: none;
}
My goal is to use the first and last name (instead of username) into threads, profile, etc.
Any tips on how to make available the 2 custom fields into templates?