dimitris Posted March 4, 2011 Share Posted March 4, 2011 Hi i want to delete a required field from registration i tried to remove the line <tr><td width="150" class="fieldarea">{$LANG.clientareafirstname}</td><td><input type="text" name="firstname" size=30 value="{$clientfirstname}"></td></tr> But i received an error when i complete the registration that the username is not specified .. I also tried this: <tr><td width="150" class="fieldarea">{$LANG.clientareafirstname}</td><td><input type="hidden" value="" name="firstname" size=30 ></td></tr> But i also receive the same error Have anyone managed to delete a Required field from clientregister.tpl ?? please advice thanks 0 Quote Link to comment Share on other sites More sharing options...
apsmike Posted March 4, 2011 Share Posted March 4, 2011 To make it simple, required field means that value for that field must be entered in database, so if you delete the required field from the order form then that particular value will not be inserted in the database and hence error will be generated. Instead of think in this way that though the text box will be removed from the form, at the back end I will enter some value to database which will avoid error. Also one more thing, required field if removed from forms then also client will be able to edit it from client area after signup. So I would suggest you to drop this idea as required field are base upon the database structure and its not possible to change the DB structure. 0 Quote Link to comment Share on other sites More sharing options...
dimitris Posted March 4, 2011 Author Share Posted March 4, 2011 Thanks for your suggestion .. but i will do that anyway .... so did anyone done that and what is the most appropriate way to do such thing in order not to have problem? Thanks 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.