Home Forums Add-ons Repeater Field Repeater Row Values Via Javascript


Repeater Row Values Via Javascript

  • Hello is there anyway to get the repeater row values via javascript? I can’t get it via getElementByName since the field id/names are randomly created, I need it for real time updating of values.

    Thank you and I really appreciate your help.

  • There isn’t a lot of documentation on using JavaScript with ACF. There is this document Beyond this you’ll need to find examples of how other people have done this. I can remember several topics on this forum on the subject and you might be able to find those.

    The field keys if that’s what you’re talking about that look something like this field_12345677 are randomly generated, but this is what you need to use when targeting the field using JavaScript.

    I have some examples of using JS in a different way, by extending the acf object, but nothing that does what you’re looking for. But you can look at this to see how you can target the fields

    • pzh20

    • April 7, 2021 at 1:18 am

    noyram23, did you find any solution to this? I have a similar problem.


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.