# gform.initializeOnLoaded is not a Function on Version 2.6.3 \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/gform-initializeonloaded-is-not-a-function-on-version-2-6-3-resolved/12854>\
**Category:** Get Help\
**Tags:** gforminitializeonloaded, gravityforms-263\
**Created:** [June 16, 2022, 7:38pm UTC](https://community.gravityforms.com/t/gform-initializeonloaded-is-not-a-function-on-version-2-6-3-resolved/12854 "2022-06-16T19:38:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijayhardaha](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/vijayhardaha/32/5396_2.png) [@vijayhardaha](https://community.gravityforms.com/u/vijayhardaha)\
**Post date:** [June 16, 2022, 7:38pm UTC](https://community.gravityforms.com/t/gform-initializeonloaded-is-not-a-function-on-version-2-6-3-resolved/12854/1 "2022-06-16T19:38:35Z")

</div>

In one of my client website, I found this error on backend. When I investigated on google there were some answers but those answers were not working with this version.

then I personally checked the issues.

so the problem is `gravityforms/assets/js/dist/vendor-admin.min.js` these dist js are loading before `plugins/gravityforms/js/gravityforms.min.js` so `var gform;` is undefined for those first enqueued js files and then all these errors starts.

why this happenening?  
I checked the code and found that `wp_register_script( 'gform_gravityforms_admin_vendors'` this registration should have `'gform_gravityforms'` as dependency. Currently there is no dependency on that registration of script.

I hope Gravity form team will test this solution and apply a good fix in future versions.

Thanks

---

<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:** [June 16, 2022, 7:51pm UTC](https://community.gravityforms.com/t/gform-initializeonloaded-is-not-a-function-on-version-2-6-3-resolved/12854/2 "2022-06-16T19:51:41Z")

</div>

Hi Vijay. Thank you for the research. Were you experiencing any problems on the site, or did you only notice the errors in the console?

---

<div class="post-metadata">

**Author:** ![vijayhardaha](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/vijayhardaha/32/5396_2.png) [@vijayhardaha](https://community.gravityforms.com/u/vijayhardaha)\
**Post date:** [June 18, 2022, 4:49pm UTC](https://community.gravityforms.com/t/gform-initializeonloaded-is-not-a-function-on-version-2-6-3-resolved/12854/3 "2022-06-18T16:49:06Z")

</div>

Sorry for the late response.

I had this issue on website backend while editing existing forms. I was unable to edit any form fields due to those errors.

After applying suggested dependency solutions, all the errors were gone and I was able to edit the fields normally.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [June 20, 2022, 3:32pm UTC](https://community.gravityforms.com/t/gform-initializeonloaded-is-not-a-function-on-version-2-6-3-resolved/12854/4 "2022-06-20T15:32:22Z")

</div>


