Hi, I’m trying to create a form in a product on the frontend side, where:
1. on backend, the administrator creates a product (a cpt) and choose some colors from a list of colors (field type: checkbox)
2. on frontend, using acf_form(), a form with the above colors is shown, so a client can pick one of them
3. on submitting the form, an email is sent to the admin, with the color chosen by the client (so the value of the field)
No problem on 1 and 2, but 3 is where some trouble begins. I can make the form send the email, but I can’t output the field I need (the color chosen in step 2). I can output a field that is not on the form (so it’s simply some data shown, like a SKU code), but nothing else.
In this code, $coccarda is the field which is chosen on step 2 (and doesn’t show on the email), whereas $codice is a text field entered by the administrator on the product, and it correctly shows on the email.
Thanks in advance!
Viewing 1 post (of 1 total)
The topic ‘Send email through frontend form with fields’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users