Ninja Form opening in a modal window from a bootstrap button
-
I am using the following: Ninja Version: 3.4.25 / WordPress Version: 5.5 / Bootstrap Version: 3 (or maybe 4)
I have a WordPress template based on bootstrap, and I am using the latest Ninja forms version.
I have created a Bootstrap button in a widget, that I want to open up a model window displaying my Ninja Contact form.
I have actually been successful with this setup (using the same WordPress template version) but using an older version of Ninja form. Since the latest Ninja form updates, you have changed some of the form field and function names, and so now it won’t work on the new site I am developing, because I am not using the correct names.
The above link is to the site that does work, using the 3.2.11 version of Ninja Forms. This modal button can be seen on the sidebar’s green ‘contact us’ button. I can’t show you the new site that doesn’t work, as it is on my localhost.
Could you please let me know what the old field name or function: “ninja_forms_display_form” is called now?
Here is the line of code that pulls in the ninja form into the modal window. The name of the ninja_forms_display_form function is what needs updating:
<?php if( function_exists( 'ninja_forms_display_form' ) ){ ninja_forms_display_form( 1 ); } ?>
Thanks for your help.
The page I need help with: [log in to see the link]
- The topic ‘Ninja Form opening in a modal window from a bootstrap button’ is closed to new replies.