I’m submitting the form values to a third party which have preset variables for the input name field so I’m looking to get the acf fields to match this, at the moment my input fields look like:
<input id="acf-field_5644ca0ecae0b" class="" type="text" placeholder="" value="" name="acf[field_5644ca0ecae0b]">
I need input name to be something like:
<input id="acf-field_5644ca0ecae0b" class="" type="text" placeholder="" value="" name="answer1">
i can achieve this with jquery but doing this stops the data being being sent to the new post which is also made by the form, I either need acf to use custom field keys or look into
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.