S
S
slii2019-01-30 11:53:55
JavaScript
slii, 2019-01-30 11:53:55

How to correctly call one form from another?

On a site with a backend on ruby ​​on rails, you need a pop-up window to appear after filling out one form with standard validation, with another form where the user needs to enter a code from SMS.
Can you tell me the best way to implement this?
So far, in my thoughts, only intercept the submit of the first form through js and call the second, provided that the data from the first is correctly filled in.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2019-01-30
@slii

send the form via ajax , upon successful completion of the form, open the second one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question