arpowers Posted January 29, 2010 Share Posted January 29, 2010 Hi, I'm trying to hide of the fields on the registration page and its not working. The phone number won't validate when the input is set to 'hidden' and the value="NA" Can you help me adjust this? Andrew 0 Quote Link to comment Share on other sites More sharing options...
rdavis Posted January 29, 2010 Share Posted January 29, 2010 (edited) Is this what you are refuring to? Please see below. Remove Fields From Order Form If you do not want to show one of the default fields on your order form, you can change the field type to hidden and supply a default value of NA. The following example shows to hide the Address 2 field from the viewcart.tpl page: Find: <input type="text" name="address2" style="width:80%;" value="{$clientsdetails.address2}" /> Replace with: <input type="hidden" name="address2" style="width:80%;" value="NA" /> Edited January 29, 2010 by rdavis extra words 0 Quote Link to comment Share on other sites More sharing options...
arpowers Posted January 29, 2010 Author Share Posted January 29, 2010 yes, but this didn't work... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted February 1, 2010 WHMCS Support Manager Share Posted February 1, 2010 The phone number field won't accept letters, so replace NA with 0. 0 Quote Link to comment Share on other sites More sharing options...
Dancy Posted April 8, 2010 Share Posted April 8, 2010 Can anybody hook me with a code (maybe it should be client-side javascript) to show/hide registration form fields based on a previous selection ? For example: if a client choose to register as a private user or business user - show different additional fields based on this selection. 0 Quote Link to comment Share on other sites More sharing options...
urbee Posted October 16, 2010 Share Posted October 16, 2010 I would like this also! 0 Quote Link to comment Share on other sites More sharing options...
WebMama Posted December 9, 2010 Share Posted December 9, 2010 Hi, I'm trying to hide fields on the registration page, but i cant change register.php, it is coded. How i can hide it? I need it for my new affiliates registration . Thanks in advance! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 10, 2010 WHMCS Support Manager Share Posted December 10, 2010 You can't edit the php files, you edit the template files instead: http://wiki.whmcs.com/Customising_WHMCS In this case edit clientregister.tpl 0 Quote Link to comment Share on other sites More sharing options...
WebMama Posted December 10, 2010 Share Posted December 10, 2010 You can't edit the php files, you edit the template files instead: http://wiki.whmcs.com/Customising_WHMCSIn this case edit clientregister.tpl Thanks a lot! It works 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.