Support

Account

Home Forums Add-ons Repeater Field Get value of repeater post object in backend? Reply To: Get value of repeater post object in backend?

  • You will need to add custom JS to ACF. You will need to add a JS action that fires when the field changes. In this action you will need to make an AJAX request to get the value from the selected CPT and then update the text/number field.

    Targeting a sibling to update in a repeater based on the field that was changed

    
    // field_XXXXXX represents field to be updated
    // {INPUT TYPE} represents the field type of the actual field you will be updating
    field.closest('.acf-row').find('[data-key="field_XXXXXX'] .acf-input {INPUT TYPE}');