# Load Gravity Forms via AJAX

**URL:** <https://community.gravityforms.com/t/load-gravity-forms-via-ajax/8905>\
**Category:** Get Help\
**Tags:** custom, elementor, gravity-forms-25, ajax, gform\_force\_hooks\_js\_output\
**Created:** [April 29, 2021, 2:54am UTC](https://community.gravityforms.com/t/load-gravity-forms-via-ajax/8905 "2021-04-29T02:54:58Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Matt\_MX](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/matt_mx/32/3031_2.png) [@Matt\_MX](https://community.gravityforms.com/u/Matt_MX)\
**Post date:** [May 27, 2021, 4:23pm UTC](https://community.gravityforms.com/t/load-gravity-forms-via-ajax/8905/21 "2021-05-27T16:23:12Z")

</div>

Yep, it has conditional logic. But apparently the fact that the display:none wasn’t removed is actually a sign that other parts of the form haven’t been initialized correctly. If you look that the BOX A, BOX B etc… These should actually start hidden and only shown when certain questions are answered YES.

So it is like GravityForms hasn’t been loaded correctly

---

<div class="post-metadata">

**Author:** ![Matt\_MX](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/matt_mx/32/3031_2.png) [@Matt\_MX](https://community.gravityforms.com/u/Matt_MX)\
**Post date:** [May 27, 2021, 4:30pm UTC](https://community.gravityforms.com/t/load-gravity-forms-via-ajax/8905/22 "2021-05-27T16:30:34Z")

</div>

Yep, definitely conditional forms only…

I just put this non-conditional form on a new page and it works fine…

[https://scubamedical.com/testpage2/](https://scubamedical.com/testpage2/)

Hopefully someone from Gravity can fix this?

Interestingly, the preview of the form in the elementor form builder in now working for both the conditional and non-conditional form (the preview was broken in v2.5.2, but in 2.5.3 is it working)

---

<div class="post-metadata">

**Author:** ![Matt\_MX](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/matt_mx/32/3031_2.png) [@Matt\_MX](https://community.gravityforms.com/u/Matt_MX)\
**Post date:** [May 27, 2021, 4:59pm UTC](https://community.gravityforms.com/t/load-gravity-forms-via-ajax/8905/23 "2021-05-27T16:59:29Z")

</div>

The legacy this I enabled while trying to troubleshooting.

I guess I could override the style:none, but then I’d all need to apply some more CSS to hide all the questions that should start hidden - but I think it would be best if Gravity could fix this in some way

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 28, 2021, 3:05pm UTC](https://community.gravityforms.com/t/load-gravity-forms-via-ajax/8905/24 "2021-05-28T15:05:41Z")

</div>



[Previous page](https://community.gravityforms.com/t/load-gravity-forms-via-ajax/8905.md?page=1)
