I
I
Ilya Derevyannykh2022-04-22 08:23:09
Web development
Ilya Derevyannykh, 2022-04-22 08:23:09

How to make a ninja form thank you page in a popup?

How to make a ninja form thank you page in a popup? So that there is not a redirect, but a popup pops up?
You can hang on some kind of hook, but I don’t know how to do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Programmer_Man, 2022-04-22
@Programmer_Man

To be honest, I don’t really rummage for ninja form, but I have an idea. Try to create a popup but initially set its css property: Next, get the popup element itself into a variable, and at the moment when you need to display the popup itself, do the following:
display: none;

let Popup = document. getElementById('popup'); //получаем ссылку на попап
//.....
Popup.style.display = 'block';

After you set the display property back to block, your popup will be displayed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question