• Resolved alexdilorenzo

    (@alexdilorenzo)


    Hello,

    I created a “Dynamic Form” I want to use it as “search module” for posts, to filter records in a list page.
    The form is in a page and the list is another page.

    Here the 2 pages: https://prnt.sc/fqlnaJdD9JRh

    The Form Action is a “redirect” to the “list page”: https://prnt.sc/ojEx8bFyvgRw
    In the “Action URL” I need pass some form field values to the “list page”: https://prnt.sc/wUhrd5uAFxi8

    1. Some of those fields are “Taxonomy Terms”, how can I get only the “taxonomy slug” to pass via GET in the “list page”?
    2. How can I hide the “Taxonomy Terms” with 0 posts? (https://prnt.sc/a2MnigNpWkGR)
    3. How can I set a default value for an input text getting the max value of a post field value?

    Thank you

    Regards
    Alex

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    1. You can set the redirection URL using the acfe/form/submit/redirect_url hook (see documentation). I would recommend to use it for advanced scenarios such as yours.

    2. You can customize the query of the Taxonomy Terms using the acfe/fields/taxonomy_terms/query hook (see documentation). In that filter, you can use any WP_Term_Query argument such as hide_empty. See list of arguments.

    3. You can prefill the value of any field in the form using the acfe/form/load hook (see documentation).

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to result page’ is closed to new replies.