Finaly i found the problem!!
omg how difficult it’s realised..
So, as u know i had hidden input in my output ( render_field ) and as i understood it’s errasing is value not changed, so my problem was that wen in js i do $hiden.val( newVal ) the ‘change’ event is not fiered and ACF js files don’t see my input change and do not update value..
So the solution was:
$hidden.val( newVal ).trigger( 'change' );
.trigger( ‘change’ )
( i’w been looking for that solution for few days, could be btter expaned in documentatoion how to make own custom fields )
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!
© 2022 Advanced Custom Fields.