Support

Account

Home Forums Front-end Issues acf_form front end dropdown problem

Solved

acf_form front end dropdown problem

  • Hello,

    I’m having an issue with front end form created with acf_form.

    The form is supposed to create a new post type and is using a group field that includes a relation/post field.

    When clicking the post select dropdown i get an error “Loading failed”.

    Looking at the consolle there are no errors but I see that the request is made to the url of the page is itself. The complete html page is returned as a response.
    I guess the request should be made to wp_ajax_url, right?

    Could you please assist?

    This is the live url with the form :
    http://109.199.126.198/~desig471/competition-login/qa/

    Thanks

  • some more information:

    as i guessed the ajaxurl is not passed correctly

    If i run the following script inside the page i get a NULL response:

    <script>
    alert(acf.get('ajaxurl'));
    </script>
  • found the problem.. my footer was missing a call to wp_footer() function

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

The topic ‘acf_form front end dropdown problem’ is closed to new replies.