View Full Version : Adding fields to New Account Form
cgwillis
March 19th, 2003, 04:45 PM
How can I add form fields to the New Account Form. For instance, if I've added a 'Referred' column to the Customers table, how do I put a group of radio buttons to be included in the add_usr.func? Thanks!
Jamie
March 20th, 2003, 11:41 AM
There is no built in way to do this. We will be adding that ability as a feature at some point. If you are interested in having us customize it for you, please send info to sales@ldev.net, and we can give you a quote.
Thanks,
Jamie
cgwillis
March 20th, 2003, 02:57 PM
Thanks, Jamie, but I figured it out:
add_user.func line 57:
if(!$modify_account) $form_fields[] = "Referred";
--
add_user_fields.php:
<? if(!$modify_account){?>
<!--- <span class="field_name"> </span><span style="text-align: left; width: 325"> --->
<br><br>
How Did You Hear About Us?<br><br>
<input type="radio" name="<?=$Field_Name ?>" value="Referral">
Referred by others
<input type="radio" name="<?=$Field_Name ?>" value="Direct Mail">
Direct Mail Piece
<input type="radio" name="<?=$Field_Name ?>" value="Phone Message">
Phone Messsage <br><br>
<input type="radio" name="<?=$Field_Name ?>" value="Current Customer">
Current Customer
<input type="radio" name="<?=$Field_Name ?>" value="Our labor law posters">
Our Labor Law Posters
<input type="radio" name="<?=$Field_Name ?>" value="Other">
None of the above<br><br>
<input type="radio" name="<?=$Field_Name ?>" value="MSN">
MSN
<input type="radio" name="<?=$Field_Name ?>" value="Yahoo">
Yahoo
<input type="radio" name="<?=$Field_Name ?>" value="Netscape">
Netscape
<input type="radio" name="<?=$Field_Name ?>" value="Ask Jeeves">
Ask Jeeves
<input type="radio" name="<?=$Field_Name ?>" value="Google">
Google <br>
<br>
<input type="radio" name="<?=$Field_Name ?>" value="Alta Vista">
Alta Vista
<input type="radio" name="<?=$Field_Name ?>" value="AOL">
AOL
<input type="radio" name="<?=$Field_Name ?>" value="Lycos">
Lycos
<input type="radio" name="<?=$Field_Name ?>" value="Info Space">
Info Space
<input type="radio" name="<?=$Field_Name ?>" value="CNET">
CNET <br><br>
<input type="radio" name="<?=$Field_Name ?>" value="Other">
Other web site:
<input type="text" name="Referred_other" size="15" maxlength="40">
<br><br clear="all">
<!--- <span class="field_name"> </span><span style="text-align: left; width: 325"> --->
Please enter the web site in the space provided.<br>
<br><br>
<?}?>
<?} else {?>
<span class="field_name"><?=$Field_Descriptor?>: </span>
<span style="text-align: left; width: 325">
<input class="field_input" <?=$Field_Style?> type="text" name="<?=$Field_Name ?>" value="<?=$Field_Value?>">
<span style="width: 20"><?=$Required?></span>
</span>
<br>
<?}?>
-----
And of couse, add the 'Referred' column to the Customers table. Cheers.
pweb
June 28th, 2004, 02:48 AM
Hi there again....
I have nothing to do tonight... so I am browsing the forum. (Pls do not hate me.. I know this is my second post in less than 5 mins..)
I am very interested in this feature, ... it sounds really cool.
It looks like the add_user.func and the add_user.php have changed so I am not going to play around with them.
Any suggestions? It does not have to be detailed, a list of files to change with some hints will be sufficient to keep me busy.
Thanks a lot. :) (no more posts tonight... promise!!)
Jamie
June 28th, 2004, 01:01 PM
Hi,
No problem on the post. That's what the forum is here for! Adding new fields is difficult, and we do not have a tutorial to explain it. We will be adding a feature to allow for custom fields in the future.
Thanks,
Jamie
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.