Home › Forums › Bug Reports › New custom fields doesn't save values › Reply To: New custom fields doesn't save values
Hi @patternbook
The issue is that you are using a custom ‘name’ attribute to POST the data. ACF requires the data to be posted with a very specific name attribute.
The code which causes the error is:
<li><input type="radio" name="rating" class="star" value="1">1</li>
Your name is rating. If you look at the source code for a normal ACF field, you will see that it is more like ‘fields[field_13434ydf]’
To make your field type compatibile, notice that the radio field uses $field[‘name’] for the name attribute! Not a custom name.
That should fix it.
Thanks
E
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.