merchant:epaymentform:reqfieldsjavascript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
merchant:epaymentform:reqfieldsjavascript [2012/04/25 07:50]
jpresley created
merchant:epaymentform:reqfieldsjavascript [2016/05/20 10:53]
charlie
Line 28: Line 28:
 else { else {
 document.getElementById('​required'​).innerHTML = "<​font color=\"#​FF0000\">"​ + themessage + "</​font>";​ document.getElementById('​required'​).innerHTML = "<​font color=\"#​FF0000\">"​ + themessage + "</​font>";​
 +window.scrollTo(0,​0);​
 return false; return false;
  }  }
Line 33: Line 34:
 </​script>​ </​script>​
 </​code>​ </​code>​
-   - You can make as many fields required as you want. To make a field required, repeat this section of code:+   - You can make as many fields required as you want. To make a field required, repeat this section of code.  Please note, requiring fields that are not on your payment form will break the entire field verification,​ causing no field requirements:
     - <code javascript>​     - <code javascript>​
 if (document.epayform.UMfield.value==""​) { if (document.epayform.UMfield.value==""​) {
merchant/epaymentform/reqfieldsjavascript.txt ยท Last modified: 2017/04/25 15:28 by kat

Page Tools