Home Forums ACF PRO Redirect Form to variable External URL Reply To: Redirect Form to variable External URL

  • Ahh… I was looking at the wrong bit of code for my fix then!

    It was this snippet that stopped my code running, as you had mentioned:

    if($post_id != 'new') {
      return $post_id;

    I’m not sure though that this check is the right one though:

    if (is_admin() || get_post_type($post_id) != 'post_type_listings') {

    I have a custom user role on my website that can submit the form. So I’d only want them to be able to submit it and only once. (the form gets saved as pending state before I manually approve it).

    Any tips please?!

    Thank you for you help on this. Most appreciated.