andes1 Posted August 10, 2004 Posted August 10, 2004 Anyone any idea about how to switch of some of the required fields when creating new account. i have tried in minimun values; i filled the telephone value whit nothing (no numbers) only blank space. but when the costumer try to create an account, a pop up apears that says: " line 106---- sintax error" or when he finished "object expected" i don't want telephone as reguired field. but i like that field as opcional or voluntari. thank you for your help
whoopass Posted August 14, 2004 Posted August 14, 2004 I would also like to know how to remove the required "telephone" field when users input their information............. any assistance would be appreciated.............
mangastyle Posted August 14, 2004 Posted August 14, 2004 i think i got it go to includes/language/english.php or whatever the language is then on line 203: define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); remove '*'
mangastyle Posted August 14, 2004 Posted August 14, 2004 sorry i was wrong you must replace this: define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:'); define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.'); define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); with this define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:'); define('ENTRY_TELEPHONE_NUMBER_ERROR', ''); define('ENTRY_TELEPHONE_NUMBER_TEXT', '');
andes1 Posted August 14, 2004 Author Posted August 14, 2004 sorry i was wrong you must replace this: define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:'); define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.'); define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); with this define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:'); define('ENTRY_TELEPHONE_NUMBER_ERROR', ''); define('ENTRY_TELEPHONE_NUMBER_TEXT', ''); thanks..but it does not work... the error is still apear. or the pop up of required fields have apeared maybe we should check and leran from the field "fax" and try to understand his process in create_account.php. or in the DB. or in another place. CHANGING TRUE by false...some hipotesis. because "fax" have the behavior that we are looking for. (optional field not required). but how....
mangastyle Posted August 14, 2004 Posted August 14, 2004 i tried it my self and it works fine with me so i dont understand because this is the same as the fax
bellydevil Posted August 15, 2004 Posted August 15, 2004 I have been trying to do the same thing. I want the First or Last name, email and phone to be optional. I think you have to look at the javascript that checks the form and also set the minimum values for those entries. The javascript can be located at includes/form_check.js.php (I think). I have not done this, but I am going to ty tonight. Good luck and post if successful
stevel Posted August 15, 2004 Posted August 15, 2004 The other thing to do is in Admin, Minimum values, set the length for the phone number to 0. You don't have to edit the JavaScript. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
bellydevil Posted August 15, 2004 Posted August 15, 2004 You actually do have to edit the javascript. I have already done the admin part and when you actually signup an account, a javascript error is generated that indicates the minimum values have not been reached. try it out an see....
bellydevil Posted August 15, 2004 Posted August 15, 2004 I think if you edit form_check.js.php and comment out this line check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>"); the customer can create an account without any phone number. I have not figured out how to remove the * from the end of the field Also, you actually do not have to edit the admin part at all (min values) as you are no longer making this a required field. try it out
Recommended Posts
Archived
This topic is now archived and is closed to further replies.