Support

Account

Home Forums ACF PRO Loading data inside a custom field type Reply To: Loading data inside a custom field type

  • So add your ajax action directly in the field class. For an example of this see any of the built in ACF relationship type fields. All of these use Select2 and are dynamically populated via AJAX.

    Maybe you misssed it by the ACF select field has an option to do this already.

    Presentation => Stylized UI
    when turned on there is a second option to => Use Ajax to lazy load choices.