jQuery errors with form in a modal

I have a Gravity Form embedded in a Bootstrap modal. I’m running into jQuery issues regardless of how I load scripts or forms in the page.

I have conditional logic on one question. When the form loads, the following JS error is thrown in the console:

Uncaught ReferenceError: gf_apply_rules is not defined

I’ve confirmed that all scripts are loaded in the head before the form is loaded. The modal is in a PHP file which loads in the site footer. Any tips on why the function is throwing an error?

GF: 2.4.12
WP: 5.2.3

Can you share a link to the page on your site where we can see the form?

Here’s a sample page: http://supply-store.onecityonemission.org/eefss_community_ad/stool-with-back/

Click on “Contact teacher” to launch the modal.