Home › Forums › Feature Requests › JS hooks – a reference to DOM node of the rendered item in the callback function › Reply To: JS hooks – a reference to DOM node of the rendered item in the callback function
I’m not sure if I can help you with what your looking for specifically, but since the last time I commented on this topic I have been doing a bit of testing and working with the ACF JS and learning how to extend it and create new functionality for fields. I don’t know if any of this will help you but you can look at the JS I’ve created for some things in these files https://github.com/Hube2/acf-input-counter/blob/master/acf-input-counter.js https://github.com/Hube2/acf-custom-field-locations-rule/blob/master/acf-custom-field-location-rule.js https://github.com/Hube2/blunt-parametric-search/blob/master/admin/js/admin.js.
I don’t think that any of it will specifically answer how to get a value from a certain field. ACF itself relies heavily on the data-key attribute of the field wrapper, if that’s any help to you.
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!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.