Support

Account

Forum Replies Created

  • Ok thanks,
    I checked and there is no javascript error. There were some PHP errors that I fixed but the issue remains. There’s still no validation going on. I really don’t understand why it’s not working if there’s no errors…

  • Thank you for your answer. I already placed acf_form_head() before get_header() and wp_head() and wp_footer() are called in my theme. Is there anything else which could cause this issue ?

  • Ok, I finelly figured it out.
    Looking at the code I noticed that in the back-end there was this script that weren’t in the front end so I added it in my form page and now the map is showing and the field is working fine :

    <script type="text/javascript">
    acf.fields.google_map.api = {"libraries":"places","key":"MYKEY"};
    </script>

    I looked at google-map.php from the plugin code and it seems that the function input_admin_footer() which is calling acf/fields/google_map/api is used only for the back-end but not it the front-end, which caused my isue.

Viewing 3 posts - 1 through 3 (of 3 total)