PDA

View Full Version : Wishtlist: Email Verification


Pneumatus
21-Jun-2003, 12:05 PM
Is there any chance that in the next revision of catalog we can have a better verification for the email filed. At present, when it is made a required field, any input not null is accepted - we need an algorithm to check that it conforms to name@domain.com or whatever...

Nick
22-Jun-2003, 11:12 AM
I haven't tried it myself, but can you not just add a bit of javascript to the form that checks the content of the email field when the "Next" button is clicked?


Regards

Nick

Pneumatus
24-Jun-2003, 09:59 AM
I have done exactly that, and will be modifying the perl scripts for further incantations of the checking, but am hoping that one of the Actinic guys would have the good sense to include proper email verification, especially seeing as "Email Required" is a tick box in Business Settings -> Ordering...

trevorsm
24-Jun-2003, 05:36 PM
Hi Matt

Did you modify Act_PrimaryCheckout? If so what part did you change?

I have the javascript code but believe I need to modify the FORM tag to include an OnSubmit call to my code.

Thanks in advance

Trevor

NormanRouxel
25-Jun-2003, 07:50 AM
If it's too difficult to fudge the onsubmit you could always use the onchange event in the e-mail fields entry box and use alert to display a warning if the address looked bad.

i.e

autocomplete="off" onchange="checkaddress(this.value)"

You need to set autocomplete="off" as Internet Exploiter rather naughtily doesn't fire the onchange if the client uses autocomplete to alter a text field.

Norman

Ben
25-Jun-2003, 08:40 AM
Hi Matt

I've got a feeling that email verification may be an item on our wishlist already, but I'll add it again to highlight the request.

The 'Email Required ...' check box in Business Settings | Ordering is to enable the email notification sent to the merchant.

Ben

trevorsm
25-Jun-2003, 07:12 PM
Thanks for the suggestion Norman. That worked a treat.

Trevor