I printed postcards with a coupon code saying "get 10% off if you enter coupon code COMEAGAINSOON"
Unfortunately for me, upon setting up the coupon code via my shopping cart (PDG), I find that the max length of coupon codes (not documented) is 11 characters. So I need to make the user's entry "COMEAGAINSOON" be submitted to the server as "COMEAGAINSO"
I figure there must be (hopefully) a js or other solution that does this, rather than reprinting my postcards. It's basically like: I made a bad/stupid mistake at work and am trying to fix it before I have ended up costing my company a lot of money and (perhaps) my job with them.
I've tried a number of solutions I've found here (replacing the innerhtml, shorten string), but none seem to submit that changed data directly to the right place. Also, I simply am not particularly advanced at coding, to say the least (I'm one of those designers who ends up doing web work when necessary). MaxLength is a thing, but I think it would frustrate users to not be able to enter the full coupon code they were told to use.
Thoughts appreciated. Thank you very much!!
PS - I am aware that this is a fairly basic dilemma, and that the community here is pretty advanced, and that perhaps this isn't the right place for this question. But I need to throw it out there.
<form method="post" action="/cgi-bin/redirect.cgi">
<input type="hidden" name="goto" value="/pottedstore/potted.cgi?display">
Potted Coupon Code:
<input size="17" type="text" name="pricing" value="">
<input name="submit" type="image" value="submit" src="/includes/images/submit.jpg" align="bottom" >
</form>