Home › Forums › Backend Issues (wp-admin) › showNotice on repeater field. › Reply To: showNotice on repeater field.
Targeting sub fields on a repeater is possible, but a bit more complicated.
You have the half of it here
var $fieldTarget_id = $input.closest('.acf-row').data('id');
What you need to do is use .closest
to get the row and then .find
to find the other field that you want to target on the same row.
var $row = $input.closest('.acf-row');
var $target = $row.find('[data-key="'+ $fieldTarget_key+'"] input.hasDatepicker');
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.