Home › Forums › Front-end Issues › Conditional Statements in frontend ACF Form › Reply To: Conditional Statements in frontend ACF Form
I know this is an old topic, but I had the same problem and solved it. So I want to share my solution, maybe useful for somebody else…
As @jcow said, my problem was originated from my theme… and at least I understood that my theme uses jQuery individually and it was loading the jQuery file at the footer.
I just changed the position of loading jQuery in the theme (made it load in the header) and the problem solved.
I changed this code:
wp_enqueue_script( 'boot1', get_template_directory_uri() . '/assets/vendors/jquery/jquery-3.6.1.min.js', array(),'', true );
To this:
wp_enqueue_script( 'boot1', get_template_directory_uri() . '/assets/vendors/jquery/jquery-3.6.1.min.js', array(),'');
If the last parameter in wp_enqueue_script was “true”, that means loading the script in the footer.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.