Announcement
Collapse
No announcement yet.
I want to call an email validator from OSEL.
Collapse
X
-
Upon further investigation I realized that the email validator was not 100% accurate. We were going to use the validator to identify our credit card validator but because of it's inaccuracy we decided not to use it. Don't want to eliminate real customers.
-
Great. And you could also try input type="email"
Example:
( Sometime the autocomplete field causes errors created by the user so you could remove it.)Code:<input class="validate" type="email" name="ShipEmail" id="ShipEmail" value="&mvte:global:ShipEmail;" required="required" aria-labelledby="ShipEmail" autocomplete="email">
Leave a comment:
-
Thank you Alpha: This is good information for possible future use. I will retain it. Actually I decided to call the email validator with the onblur event from the ShipEmail <input tag on OCST. This allows the edit and any errors to be shown prior to OCST submit.
Thank you again, Larry
Leave a comment:
-
From the OSEL Page:
Found on Miva Docs.Code:<mvt:do file="g.module_library_utilities" name="g.is_valid_email" value="Email_Validate(g.Basket:bill_email)" /> <mvt:if expr="g.is_valid_email EQ 1"> Email Address Format is Correct! </mvt:if>
Leave a comment:
-
I want to call an email validator from OSEL.
Hello forum: I want to call this API using mvt:call during OSEL load.
Have been trying to do it with javascript on OCST submit but I'm stumped there. Timing issue.
Page submits before API replies.
The API:
xhr.open('GET', 'https://email-checker.p.rapidapi.com/verify/[email protected]');
xhr.setRequestHeader('x-rapidapi-key', '2bc0b6e2aamsheb878d99ffdb850p1e5a07jsn417xxxxxxxx ');
xhr.setRequestHeader('x-rapidapi-host', 'email-checker.p.rapidapi.com');
How would I set the request headers with mvt:call?
Or does Miva have a function to do this?
Cheers, Larry
Tags: None
Leave a comment: