We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8822
    • 203 Posts
    Hi Everyone,

    I am using FormItBuilder to build a form for purchasing a single product. It captures some required information and then integrates with WorldPay. I need it therefore to validate for required fields before it is redirected to the WorldPay website. If i update the core/components/formitbuilder/model/formitbuilder/formitbuilder.class.php from:

    $s_form='<form action="[[~[[*id]]]]"'.$s_formTitle.' method="'.htmls


    to this

    $s_form='<form action="https://secure.worldpay.com/wcc/purchase" method="'.htmls....


    it redirects successfully to the worldpay website but does so before it has validated the form. How do i get it to validate before redirecting? I need the required fields entering first?

    Also, is there a better way of updating [[~[[*id]]]] to https://secure.worldpay.com/wcc/purchase, short of editing the formitbuilder.class.php file?

    Thanks smiley
      • 38878
      • 255 Posts
      The validation arguments in formit should handle this. Or you will need a &prehook=`yourCustomValidationSnippet` argument in your formit call to execute a custom snippet that will do the validation before the post. Can you share your formit snippet call code?

      Quote from: Emily at Feb 12, 2013, 03:55 PM
      Hi Everyone,

      I am using FormItBuilder to build a form for purchasing a single product. It captures some required information and then integrates with WorldPay. I need it therefore to validate for required fields before it is redirected to the WorldPay website. If i update the core/components/formitbuilder/model/formitbuilder/formitbuilder.class.php from:

      $s_form='[/quote]