• Resolved nobbiexxx

    (@nobbiexxx)


    Hi
    Withd ACF back-end forms I can filter relationship queries with the acf/fields/relationship/query hook.

    Is there something similar with ACFE front-end forms or is there another way to do this.

    • This topic was modified 3 years, 9 months ago by nobbiexxx.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Your back-end filters should work exactly the same way in ACF-Extended front-end forms as long as the field group is connected to the form during definition.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! Like @laymonk pointed out, acf/fields/relationship/query works exactly the same on front-end forms.

    If you want to make the distinction between front-end and back-end, you can use the if(acfe_form_is_front()) condition inside the hook.

    Hope it helps!

    Have a nice day.

    Regards.

    Thread Starter nobbiexxx

    (@nobbiexxx)

    Great thanks, its working now

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I’m glad to hear that it’s now working as expected!

    If you enjoy this plugin, feel free to submit a review, it always helps and it’s much appreciated ??

    Have a nice day!

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filtering a relationship field’ is closed to new replies.