Select2 Ajax Callback to populate Options

Coming from WSForms and ACF i would love to have an option to populate select2 fields with PHP ideally via Ajax/RestAPI.

This would allow to dynamically filter the select options by sending other field values along with the payload.

1 Like