Hey, I wonder if it's possible (and how) to submit a form using Formit to an external website. Maybe it's simple and am I overlooking something, I don't know.
Let me explain a little bit. I have a form to submit a payment to a website of the payment-service (= goto a VISA/paypal page). But I would like, before the form is taking me to that external page, perform a hook to submit some data in the database (or in a resource of migx). Because then on return of the payment I can trigger the yes or no for succes or failed payment. (I do get an true/false code from the payment-service as feedback). I have little control over the payment page, so a formitretriever isn't possible on that page.
What is not working:
[[!Formit? ...]] <form action="external-website">
--> In this case the formit isn't executed. The data is submitted to the payment-page, but I lose some data.
[[!Formit? &hooks=`write_to_database,go_to_url` ...]] <form action="[[~[[*id]]">
--> In this case the form is writing to the database (first hook) and then takes me to the external website, but without the data from the form, so it's more like a redirect.
So I would like the second version, writing to database and goto payment-page, but with the data from the form.
Any Formit specialists on the forum? Any other suggestions are also welcome, maybe this is the wrong approach, I don't know.
Thx for help.