Hi all,
I seem to have a simple problem. Some customers enter invalid characters into the postcode field, like TW7 &EX instead of TW7 7EX. Problem from hold down shift and pressing the 7 key.
The main problem is that Sagepay doesn't like the invalid characters (and I haven't tested this out) but customers find it hard to correct it or simply can't see the error they had made and I lose a sale.
I want to address the problem before the customer gets to Sagepay, at the moment I've set-up Javascript from the Advance User guide for V8 to make the postcode field all CAPS. This is the code:
<input type="text" name="INVOICEPOSTALCODE" size="10" maxlength="50" value="<Actinic:Variable Name="InvoicePostalCode"/>" onblur="this.value=this.value.toUpperCase()" />
Can I change the Javascript to block invalid characters in the postcode field as well?
I seem to have a simple problem. Some customers enter invalid characters into the postcode field, like TW7 &EX instead of TW7 7EX. Problem from hold down shift and pressing the 7 key.
The main problem is that Sagepay doesn't like the invalid characters (and I haven't tested this out) but customers find it hard to correct it or simply can't see the error they had made and I lose a sale.
I want to address the problem before the customer gets to Sagepay, at the moment I've set-up Javascript from the Advance User guide for V8 to make the postcode field all CAPS. This is the code:
<input type="text" name="INVOICEPOSTALCODE" size="10" maxlength="50" value="<Actinic:Variable Name="InvoicePostalCode"/>" onblur="this.value=this.value.toUpperCase()" />
Can I change the Javascript to block invalid characters in the postcode field as well?
Comment