Page 1 of 1

[MOD] Alter the formfield sizes

Posted: Mon Mar 01, 2010 10:18 pm
by Martin
Took a while to find this but if you are trying to do something like alter the size of the zipcode/postcode form field you need to do some editing in the database of all places.

In this instance I made these changes to fix things so my postcode field had a bit more room

Code: Select all

UPDATE `isc_formfields` SET `formfieldextrainfo` = 'a:5:{s:12:"defaultvalue";s:0:"";s:4:"size";s:0:"";s:9:"maxlength";s:0:"";s:5:"class";s:15:"Textbox Field45";s:5:"style";s:11:"width:60px;";}' WHERE `isc_formfields`.`formfieldid` =13;

UPDATE `isc_formfields` SET `formfieldextrainfo` = 'a:5:{s:12:"defaultvalue";s:0:"";s:4:"size";s:0:"";s:9:"maxlength";s:0:"";s:5:"class";s:15:"Textbox Field45";s:5:"style";s:11:"width:60px;";}' WHERE `isc_formfields`.`formfieldid` =25;
The critical bit was the width:60px; part.


Not entirely sure whose idea it was to use CSS and then override it with a width setting like this but it's there and it's how it works...