Home › Forums › ACF PRO › ACF Form Change input name › Reply To: ACF Form Change input name
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 acf/save_post filter
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.