Gears Posted June 22, 2007 Share Posted June 22, 2007 Hey I set up a custom field for the hosting plans. The custom field is so that the customer can enter their desired cpanel username (instead of whmcs just making one up). cpanel user names can be no longer than 8 chars so how can I make the text box have a max size of 8 chars? 0 Quote Link to comment Share on other sites More sharing options...
trine Posted June 22, 2007 Share Posted June 22, 2007 textbox with 8 characters: <input type="text" name="cpusername" size="20" maxlength="8"> Note that most, but not all browsers respect this. (alluding to older browsers). 0 Quote Link to comment Share on other sites More sharing options...
Iceman Posted June 24, 2007 Share Posted June 24, 2007 Hi, Or to use the smarty code...try this: {$customfields.7.input|replace:'size="30"':'size="8" maxlength="8"'} Where the custom field is custom field 7 on that page. Cheers, Paul 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.