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.
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!
© 2022 Advanced Custom Fields.