Components and external script loading

Hi!

Whenever we use Gravity forms in a component, the behaviour of Gravity Forms will change. Sometimes its breaking the plugin. The console gives us the message "gforms not declared " . This will not happen on every page and will be different for every user, so it’s not easy replicable. When we put the Form integration directly into a page’s section, the error will be resolved. We also use the SG Optimizer plugin which also combined the Gravity forms scripts, but we excluded that through PHP. We noticed this behaviour on our websites where we use compontents for contact blocks. So before we knock on Siteground’s door, I would like to clarify that using components in Cornerstone does not influence the DOM loading of the element where the element is called before the scripts are loaded. Could you guys help us out and give us more info regarding this issue? We would love to continue using components rather than static content.

Thanks in advance!

Hello @100leiden,

Thank you for the inquiry.

Is there a test page where we can check the issue? Please provide the site URL in the secure note and include screenshots if possible. We’d like to review the forms.

Best regards.

I have added a secure note to my previous comment.
You have to be logged out in order for the error to appear on pages where the contact block is loaded. For me it already gave the error on the homepage. If it does not appear, it will after a few refreshes.

We get an error (see secure note) when we try to log in to the site using the credentials above. Please check the login info carefully.

The password has been reset just in case.
I kept the same as before.

I tried the login and it’s working on my end now :slightly_smiling_face:
Could you try again and let me know if it’s not working again?

Thank you for the update.

We tested the Gravity Form or the Contact (Shortcode + CB) component on the homepage multiple times, and it seems to be working consistently.

How can we reproduce the issue?

Best regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.