Forums / Cotonti / Support / Extra Registration Fields

fraze
#1 2012-04-06 20:28

I've done some searching, but unfortunately can't find anything specific.

Is there an easy way to add extra fields on the registration page?  The extra user fields you can enter from the admin section only appear to work on the profile page.

thanks

GHengeveld
#2 2012-04-06 20:45

You can do this:

<input type="text" name="ruserfirstname">

Where 'firstname' is the name of the extra field.

fraze
#3 2012-04-06 20:53

ok, will that enter them into the database after registration?

Trustmaster
#4 2012-04-07 06:39

They do work on registration page. Make sure you use proper tags in users.register.tpl, e.g. {USERS_REGISTER_FIRSTNAME}.

May the Source be with you!
fraze
#5 2012-04-08 09:52

unfortunately that doesnt appear to work on my genoa installation...ive added {users_register_firstname} and {users_register_lastname} to my registration form but when it loads in a browsser the area is just blank.

Trustmaster
#6 2012-04-08 11:51

Tags are case-sensitive.

May the Source be with you!
fraze
#7 2012-04-08 17:46

sorry - i did put them in uppercase, just typed it lowercase here for speed.

Trustmaster
#8 2012-04-08 19:06

Hmm, I couldn't reproduce it:

Admin / Users / Extrafields

users.register.tpl:

<tr>
	<td>{USERS_REGISTER_FIRSTNAME_TITLE}</td>
	<td>{USERS_REGISTER_FIRSTNAME}</td>
</tr>
<tr>
	<td>{USERS_REGISTER_LASTNAME_TITLE}</td>
	<td>{USERS_REGISTER_LASTNAME}</td>
</tr>

Results

May the Source be with you!