Title: Closes before validation completes
Last modified: November 29, 2016

---

# Closes before validation completes

 *  [toddryks](https://wordpress.org/support/users/toddryks/)
 * (@toddryks)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/closes-before-validation-completes/)
 * We’re using Popups version 1.6.0.1 to present a Ninja Forms version 3.0 form.
   We use a button to open the form in the popup. When I submit the form I can see
   error text appear when required fields are not filled in but the popup closes
   anyway.
 * Is there a way to stop the popup from closing if required fields are not filled
   in?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/closes-before-validation-completes/#post-8497578)
 * Yes, you need to configure your form to use ajax. Go to the setting of the created
   form and enable AJAX. Then you need to disable AJAX on popups settings page.

Viewing 1 replies (of 1 total)

The topic ‘Closes before validation completes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/popups_efeef0.svg)
 * [Popups - WordPress Popup](https://wordpress.org/plugins/popups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups/)
 * [Active Topics](https://wordpress.org/support/plugin/popups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups/reviews/)

## Tags

 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 1 reply
 * 2 participants
 * Last reply from: [Damian](https://wordpress.org/support/users/timersys/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/closes-before-validation-completes/#post-8497578)
 * Status: not resolved