Title: Modal login does not work inside gravity forms
Last modified: January 5, 2017

---

# Modal login does not work inside gravity forms

 *  [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/)
 * Hello,
    Thanks for your nice plugin, although i found a strange behavior: I use
   modal template with link to connection inside a Gravity Forms HTML field, when
   i click, the modal appears correctly, but i can’t connect (clic on connection
   button does not do anything – and no console error outputted). If at the same
   moment, filling the form, i use the sidebar modal connection widget it works 
   well, any idea ?? Thanks

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8621866)
 * Hi,
 * Glad you’re enjoying the plugin.
 * Usually it’s not possible to put a modal inside another modal without problems.
   I suspect that’s what’s happening here….
 *  Thread Starter [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8621961)
 * Thanks for your answer [@caimin_nwl](https://wordpress.org/support/users/caimin_nwl/),
   but it’s not actually a modal inside a modal, it’s a standard ‘gravity forms’
   form (a classic html form), and i simply added inside a div with your shortcode
   `[
   lwa registration=0 profile_link=0 template=modal]`
 * but the link simply does not worrk inside form (without console output), although
   it works (outside the form).
 * Is this “normal” ? 🙂
    -  This reply was modified 9 years, 5 months ago by [termel](https://wordpress.org/support/users/munger41/).
      Reason: wrong code set
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8625903)
 * Isn’t this a modal?
 * > template=modal
 * Can you post a link / screenshot? Maybe I misunderstand what’s happening / not
   happening.
 *  Thread Starter [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8626890)
 * Yes the lwa template is modal, but why do you say it is inside a modal ?
    I cannot
   post a link as the site is private… But it’s a html form containing the shortcode
   posted before.
    -  This reply was modified 9 years, 5 months ago by [termel](https://wordpress.org/support/users/munger41/).
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8634276)
 * Do you see any warnings or errors in the browser console (f12 key)?
 *  Thread Starter [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8634330)
 * No, not the slightest…
    Have you ever tested your modal link inside an html form?
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8637993)
 * Can you post a link?
 *  Thread Starter [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8638477)
 * Well, normally it’s private, can i send a private message please ?
    Thanks
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8642012)
 * No, there’s option to do that via this forum.
 *  Thread Starter [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8665455)
 * Ok, here is a test page : [http://www.idweblogs.eu/test/test-lwa/](http://www.idweblogs.eu/test/test-lwa/)
 * Please see on the left sidebar that there are 2 connexion panels, first is yours,
   and second is gravity forms.
    First test : Use following credentials : support/
   aaAA1234 to connect with LWA : does not work! Use GF login panel : it works! 
   Second test: go through the form and when “Connexion” word shows up, please clic
   it to show modal LWA login form, try to connect : impossible!
 * Can you debug that ?
    Thank you very much
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8679402)
 * Sorry, I’m not sure what you want me to do for the second test.
 * That said, having two login forms on one page may well course a problem.
 *  Thread Starter [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8686678)
 * Ok, so i removed totally the two sidebar loggin forms and just kept the one i
   would like you to test. Here is how :
    1. connect to [http://www.idweblogs.eu/test/test-lwa/](http://www.idweblogs.eu/test/test-lwa/)
    2. clic the “Next” (Suivant) button a few times so as you can see the link “Connection”
       inside the 3rd step of the form.
    3. clic the link, you should see you modal login panel showing up
    4. fill with previouly provided credentials
    5. it does not work right ?
 * Thanks a lot! 🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Modal login does not work inside gravity forms’ is closed to new replies.

 * ![](https://ps.w.org/login-with-ajax/assets/icon-256x256.png?rev=976165)
 * [Login With Ajax - Fast Logins, 2FA, Redirects](https://wordpress.org/plugins/login-with-ajax/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-with-ajax/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-with-ajax/)
 * [Active Topics](https://wordpress.org/support/plugin/login-with-ajax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-with-ajax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-with-ajax/reviews/)

## Tags

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

 * 12 replies
 * 2 participants
 * Last reply from: [termel](https://wordpress.org/support/users/munger41/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/modal-login-does-not-work-inside-gravity-forms/#post-8686678)
 * Status: not resolved