Support

Account

Home Forums Front-end Issues ACF fields in an HTML form

Helping

ACF fields in an HTML form

  • I have a form that is using the Relationship fields as an elegant input post selector. That data can be submitted as $_GET but not $_POST.

    I am using the parameter ‘form’=> false to get the content of the field embedded in a conventional form

    If I use get as the form method then I can get the value of the relationship field from $_GET[‘acf’][‘field_67378b96902a2’][0] but if I set the method to post then the $_POST variable is empty.

    It’s not a huge problem, it just means a lot of garbaage in the URL to extract the value of a field.

    Any ideas?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.