advancedforms / advanced-forms

WordPress plugin to create forms using Advanced Custom Fields
75 stars 14 forks source link

"af/field/prefill_value" not working, when field within group #100

Closed scrobbleme closed 2 years ago

scrobbleme commented 2 years ago

The filter is not working, when the field is within a "Group"

fabianlindfors commented 2 years ago

Hi, @scrobbleme!

Unfortunately because of the way ACF group fields are designed there is no easy way of making this filter work for subfields. The best way around it is to instead target your top-level group field and pass an associative array of values for the subfields from af/field/prefill_value.