title: Update select field in repeater based upon the choice of other select field (ACF)
body: <p>I've been looking for this a while and I can't really find a solution. I've read plenty of articles and all about dynamically populating select fields, but the way they're implemented isn't really what I'm looking for.</p>
  
  <p>I have a repeater field on a page where the user can select multiple acts (from the Act CPT). </p>
  
  <p>In these acts there is a repeater field in which they can add the different times the act is going to perform. </p>
  
  <p>My 'choose acts' repeater is something like this.</p>
  
  <ul>
  <li>Choose Act (select field, shows all the posts from the act cpt)</li>
  <li>Choose time (select field, needs to load custom meta data from the chosen act post on the 'choose act' change).</li>
  </ul>
  
  <p>What I'm looking for is, when the user chooses an act I want the 'Choose Time' select field to load the times the user added in the Act post. </p>
  
  <p>So let's say I have Act A. Children of Bodom. I added four times to the post. 21.00, 22.00, 23.00 and 24.00. </p>
  
  <p>I also have Act B. Social Distortion. I added three times to the post. 15.00, 16.00 and 17.00. </p>
  
  <p>What I want is in my repeater when I select the act Children of Bodom, I want the time select for that repeater part to be updated with the times I've added to the Children of Bodom act. </p>
  
  <p>Then I add another act in the acts repeater, where I select Social Distortion. I then want the respective time select to be updated with the times I've added to the Social Distortion act. </p>
  
  <p>What I've tried so far is to add some JS to execute on a select change, I don't know to specifically trigger his respective time select to get updated with the fields, as the repeater is dynamically set up and I've not choosen an ID or key for that field. </p>
  
  <p>What would be cool, but I don't know how to implement this, is to trigger the <code>acf/load_field/key=blabla</code> function from my JS file, where I can look up the right key by finding the first select after the one that triggered the change event. Then execute a function when that load field action gets triggered and load up the correct times in my time select for that respective act.</p>
  
  <p>Sorry if this is a bit confusing, I don't really know how to describe this differently, but if you want more info, please ask!</p>
  
  <p>Thanks.</p>