D
D
Dmitry2017-01-04 17:03:32
MODX
Dmitry, 2017-01-04 17:03:32

How to make a POST + redirect using FormIt [MODX]?

Hello, ALL
There is a simple payment form that collects preliminary information (name, soap, phone number, and so on), which is then transferred together with hidden fields to Yandex.checkout... The fields must be validated, this task is solved using FormIt. Since for validation to work, the action of the form must be on itself , it is not clear how to send it to Yandex.checkout after validating the form? Well, let's say I can send if I do &hooks=`yandex`, in which I can send everything I need via cURL. But I need to not only send, but also redirect the visitor there ... In general, help :)
UPD #1:To put it simply, I just need to send the form using the POST method to Yandex. The task, pancake, is nowhere more elementary. If it weren't for field validation. Is there a better way to validate? Not via FormIt?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sanes, 2017-01-04
@Sanes

&redirectTo try

E
Eugene, 2017-06-14
@Eugeny1987

jsfiddle.net/2L37sn0t/210

M
Maxim Timofeev, 2017-06-14
@webinar

Possible without js
jsfiddle.net/2L37sn0t/213

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question