WordPress.org

Ready to get started?Download WordPress

Forums

Easy Modal
Registration form in modal (4 posts)

  1. xinita
    Member
    Posted 4 months ago #

    Hello,

    I am using this plugin to have a registration form opened when clicking on a register button, when this happens, the modal opens up and when all the fields are filled in and I click on the register button, the modal closes up and the whole site refreshes, if I click again on the register button, the modal says the registration was successful.

    I'd like to know how I could keep the modal open in order to show this message, because it's confusing for the user if it keeps the current behaviour.

    Thank you

    https://wordpress.org/plugins/easy-modal/

  2. danieliser
    Member
    Plugin Author

    Posted 4 months ago #

    Is your registration form created with a plugin? To keep from closing the modal or refreshing pages your form will need to support and use AJAX to submit the form in the background using javascript.

    Without it the only way to submit the form data is to send it with a page reload and since modals default to hidden when the page loads it doesnt pop back up.

    Hope this helps.

  3. Gillbergh
    Member
    Posted 2 months ago #

    same here. The form submits in the background, but it still closes down the modal window.

    Check out my site: beta.culturesection.com

    On the Right you will see the "Subscribe" link below a picture and the Form is embedded directly below that. as you can see on form submit it doesnt refresh the page, but when I submit form in the plugin it refreshes the page. Any suggestions?

  4. danieliser
    Member
    Plugin Author

    Posted 2 months ago #

    It doesn't appear the forms JS is loading. If your using a shortcode they may be using has_shortcode() to detect if your page contains the shortcode to determine wheather they should load scripts or not. Because the shortcode isn't in the content of the page but in the footer has_shortcode() doesn't work.

    See if you can get a response from them on forums and if not ill see what i can do.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.