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}');
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.