We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27023
    • 36 Posts
    Please excuse my ignorance as i’m not 100% on this issue.

    I’ve used Eforms on many websites and yet on this particular one, i have had to integrate with sagepay so people can fill in and make an invoice payment.

    so instead of the form action being
    action="[~[id]~"
    it now reads
    action="sagepay.php"


    Because of this the form proceeds to the sagepay payment php page and skips eform validation (i.e. required fields). How can i have this validate before proceeding to the action page "sagepay.php"?
      • 26016
      • 561 Posts
      Hi,
      In cases where I can’t use Eform validation, I tend to use a separate Javascript script (boy that sounds funny). I find it easy to up, and I’ve also used it on other systems besides MODx where validation within the system would have been awful (like once on horrible Joomla).

      It’s not 100% bulletproof, as someone somewhere might turn off Javascript, but this little sucker can be just what the doctor ordered sometimes. It should work on nearly any type of page.

      http://www.javascript-coder.com/html-form/javascript-form-validation.phtml

      Cheers, Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4