Posted - 06/10/2024 : 10:10:31
Hello,
On cart step 2, we get the alert for a user not entering a full name in the name field. Ex: "John" instead of "John Smith"
They can click the alert off, then hit the proceed button without updating the name.
Is there a way such as a variable we can use to prevent the user from moving to step 3 without the name properly entered?
Below seems to be the js responsible. When false is returned, what is it supposed to do?
If there is no variable to control this, could we adjust the js below to stop it?
<% if NOT usefirstlastname then %> var regex=/ /; if(checkaddress&&!checkedfullname&&!regex.test(frm.ordname.value)){ alert("<%=jscheck(xxFulNam&" """&xxName)%>\"."); frm.ordname.focus(); checkedfullname=true; return(false); } <% end if %> return true; }
|