1
coldshade
Making other form fields required
  • 2005/1/29 8:14

  • coldshade

  • Just popping in

  • Posts: 4

  • Since: 2005/1/26


Anybody here have any idea on how to edit the code in the member registration form so that the other fields would be required to be filled up by the users?

2
Beejay
Re: Making other form fields required
  • 2005/1/29 9:12

  • Beejay

  • Quite a regular

  • Posts: 232

  • Since: 2004/6/5 2


Do you mean like the website url as well?

3
Catzwolf
Re: Making other form fields required
  • 2005/1/29 11:21

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


In Xoops_root/include/registerform.php

You need to add a required switch to the code:

as in this example:

$reg_form->addElement(new XoopsFormText(_US_WEBSITE"url"25255$url));


to:

$reg_form->addElement(new XoopsFormText(_US_WEBSITE"url"25255$url), true);


Note the 'true' switch at the end there.

Hope that helps point you in the right direction.

ATB

Catz

Login

Who's Online

165 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits