Jump to content

How do you disable fields in the registration form?


Recommended Posts

Hello Everyone!

 

Does anyone know how to disable some form fields on the registration form inside the client area? I don't want my clients to have to fill out so much information such as address, country, etc. I tried to find the answer but I didn't come up with anything. Can someone point me in the right direction?

 

Thanks!

Link to comment
Share on other sites

Open up clientregister.tpl template file and change the fields where you want to remove to a hidden input field and give it a value. For example:

<tr>

<td class="fieldarea">{$LANG.clientareaaddress1}</td>

<td><input type="text" name="address1" size="40" value="{$clientaddress1}" /></td>

</tr>

 

Change that to:

<input type="hidden" name="address1" value="notavailable" />

 

Do that with all the other fields you want to remove and provide with a VALID value for WHMCS to get the data and registers it for the client's data.

Link to comment
Share on other sites

Open up clientregister.tpl template file and change the fields where you want to remove to a hidden input field and give it a value. For example:

<tr>

<td class="fieldarea">{$LANG.clientareaaddress1}</td>

<td><input type="text" name="address1" size="40" value="{$clientaddress1}" /></td>

</tr>

 

Change that to:

<input type="hidden" name="address1" value="notavailable" />

 

Do that with all the other fields you want to remove and provide with a VALID value for WHMCS to get the data and registers it for the client's data.

 

 

Thank you so much for replying to my message. I was going crazy trying to figure this out. I will try your instructions first, then post another reply if it works just so that someone else will know what to do.

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