[MOD] Alter the formfield sizes

For Articles relating to more than one ISC version
Post Reply
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

[MOD] Alter the formfield sizes

Post 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...
Post Reply