Support

Account

Home Forums Add-ons Repeater Field Dynamically populated checkbox field not saved on the post. Reply To: Dynamically populated checkbox field not saved on the post.

  • I’m not sure where your having this issue here.

    Is it when you load the post in the admin? When editing in the admin the value of the field must be one of the choice available for the field. This means that you need to have an acf/prepare_field filter that populates the choices of the checkbox with the choices based on the first field and this needs to be done in addition to the population done by AJAX.

    A second issue is that this is a sub field of a repeater. You cannot easily have different choices for each row of the repeater. What this means is that the acf/prepare_field filter needs to load every choice that is possible for choices of this field and then you must create and acf ready action for this field to update the choices of the field based on the choice in the first field.

    Breaking it down… When the edit page is loaded the saved value must match an existing choice available for the field.