Jump to content

Delete a required field from registration


dimitris

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated