Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Modal disappears without success message (after successful submission)
After submitting the form, my modal disappears without any success message. Only when the modal is launched once again, the form is now replaced with the success message. Everything else is working perfectly.
In the Treehouse video, the modal seems to behave in a similar way (without direct success message), but I would prefer to give direct feedback to anyone who submits the form to assure them that it has been successfully submitted.
Any ideas how to accomplish this?
My site only works locally at the moment, so no previews, sorry!
P.S. Could not find much on this topic via Google, except https://wordpress.org/support/topic/pop-up-jquery-modal-dialog-window-on-success-message-in-ajax-mode. However, their suggestion (step 2) to tick the "Submit via AJAX (without page reload)" box already throws an error within the Ninja Forms plugin.