Awesome q2a theme

How to submit the form after n-seconds?

0 like 0 dislike
40 views
Hello.

There is a form on the website, which is filled automatically using jquery for payment type yandex/qiwi/wm/paypal. How can I warn the user before submitting the form? And is it possible for the timer to send?

p.s. the option Document.location is not suitable, because the post method
by | 40 views

2 Answers

0 like 0 dislike
How can I warn the user before submitting the form?

Display a modal window before submitting, for example:
if(confirm('Send form')) form.send();
by
0 like 0 dislike
$('form').on('submit', function(event) { event.preventDefault(); // kill the event(data not sent) var form = this; console.log('do validation of the fields'); console.log('or hang timeout'); console.log('or show something to the user'); console.log('doing anything'); form.submit(); // and then send the data });
by
110,608 questions
257,187 answers
0 comments
40,796 users