Iceman Posted June 5, 2007 Share Posted June 5, 2007 By default custom fields all have a field length of 30. Use this code to show a resized field length to what ever you wish. Eg for customfields[5] resized to show a field of 18 characters... {$customfields.5.input|replace:'size="30"':'size="18"'} Cheers, Paul 0 Quote Link to comment Share on other sites More sharing options...
blymp Posted June 10, 2011 Share Posted June 10, 2011 Thank you Iceman! And if you need to add something else on the input, such as placeholder, maxlength, onchange, readonly etc. You can do like this: {$customfields.input|replace:'size="30"':'size="18"'|replace:'>':'maxlength="10" onchange="JavaScript(this)" readonly="readonly" />'} Note that the {$customfields.input ... this time doesn't have a number following, which would act for every custom field within the related code/area. 0 Quote Link to comment Share on other sites More sharing options...
Backup.com.au Posted June 24, 2011 Share Posted June 24, 2011 This HOWTO doesn't seem to be working for me. Has there been a change to the process for customising the input field length of a custom field? Maybe it does still work, but the default length is no longer "30". It seems MUCH longer than that on my registration form. 0 Quote Link to comment Share on other sites More sharing options...
blymp Posted June 24, 2011 Share Posted June 24, 2011 This HOWTO doesn't seem to be working for me. Has there been a change to the process for customising the input field length of a custom field? Maybe it does still work, but the default length is no longer "30". It seems MUCH longer than that on my registration form. I'm not sure, it still works for me. I'm using WHMCS version 4.4.2. Are you sure you checked everything precisely? 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.