fiogf49gjkf0d I had customized the 7.5.0 version of the Address form for a customer using a piece of a javascript in the Base.Master to make it global.
Does anyone know a better or cleaner way to do this ?
<script type="text/javascript"> try { AddressControl.fixUp = AddressControl.fixUp || {}; AddressControl.fixUp.createFormItems = AddressControl.prototype.createFormItems; AddressControl.prototype.createFormItems = function() { for (var i = 0; i < this._fields.length; i++) { if (this._fields[i].name == "county" || this._fields[i].name == "attention") this._fields[i].visible = false; if (this._fields[i].name == "state") this._fields[i].fieldLabel = "State/Province:"; } return AddressControl.fixUp.createFormItems.call(this); }; } catch (Exception) {} </script>
Thanks in advance |