Support

Account

Home Forums Add-ons Repeater Field Dynamically populate a subfield within a repeater Reply To: Dynamically populate a subfield within a repeater

  • Correction for the sub-field, still does not work. I’ve read that sub-fields are prefixed with the parent repeater, should I select the sub field name prefixed together with the repeater fieldname? If so how would I do that?

            // Sub-field inside the repeater
            foreach ($fillable3 as $key3 => $name3) {
                update_field('field_5f5fh3dd5277a9', array('field_5f5f3d94277a3'=>array('field_5f5fh3dd5277a9' => array($key3 => $ranking->team->localNames[0]->$name3))), $inserted_ranking);
            }