Gravity Form Reference Error

Author Posts

kamarch

Website Error: https://arecordhigh.com/#artists
Description: On the gravity forms within the elementor module for the product popup on the artist portion

Uncaught ReferenceError: gform is not defined (line 1585)
Microthemer discovered a JavaScript error on your site:

Error: Uncaught ReferenceError: gform is not defined
URL: / (line 1585)
Source: Frontend preview

——-

Uncaught ReferenceError: gform is not defined (line 1836)
Microthemer discovered a JavaScript error on your site:

Error: Uncaught ReferenceError: gform is not defined
URL: / (line 1836)
Source: Frontend preview


Sebastian

Hi Kamarch,

Sorry for the slow reply, I’ve been camping at a festival-style wedding for the last three days. Just catching up on things now.

I can see from your link that this error happens due to some Gravity forms JavaScript code:

gform.addFilter('gform_product_total',function(total,formId){const product_id=jQuery("input[name=product_id]").val();if(wc_gravityforms_params.use_ajax[product_id]){return update_dynamic_price_ajax(total,formId);}else{return update_dynamic_price(total,formId);}});

It does not arise from a compatibility issue with Microthemer, because it is present on the site frontend alone. Do you recognise this code as something you added yourself? Or do you think it may have been automatically added in the course of building a form with Gravity Forms?

Microthemer checks for ANY JavaScript errors on your site, because these can sometimes interfere with the normal functioning of Microthemer. Are you noticing any issues with Microthemer right now?

Cheers,
Sebastian

You must login or register to reply to this topic.