• Resolved sp4448

    (@sp4448)


    I have WP Data Access working on my website but want to offer a search form that visitors can fill in, press ‘search’, and then be presented with the results table (in other words a way to search that’s completely separate from the table).

    Is this possible?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi @sp4448,

    There are multiple ways to add interactive filtering. You can find the documentation here: https://wpdataaccess.com/docs/data-publisher/interactive-filters/

    There is no search form/table separation. All interactive search filters are displayed on the same page with the output table. You can create you own search form and use URL parameters to build your table.

    Does this help?

    Thanks,
    Peter

    Thread Starter sp4448

    (@sp4448)

    Thanks Peter! Unfortunately not. I need a search/table separation as many of my visitors don’t understand how to use the table to search (even with instructions) and I’m tired of the complaints.

    So I’m looking to create a separate search only form that would then bring up the table with the requested results. I’m running into trouble trying to figure out how to do this.

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Fair enough, I see the need!

    Here is a demo:
    https://wpdataaccess.com/publication-search-form-demo/

    The demo contains a code block you can download to get started. The simplest way to use it is to install the Code Manager and import the code block. The code block itself contains some instructions to setup your search and publication pages. You can add your own styling, links and logic to your search form.

    Please let me know if this helps…

    Best regards,
    Peter

    Thread Starter sp4448

    (@sp4448)

    Thank you! I’ll give that a try and let you know.

    Just a note to say thanks for the Demo Search form Peter, that is great!
    Will find a use for this on my site for sure.

    Regards
    Mark

    Thread Starter sp4448

    (@sp4448)

    Thank you Peter, this was exactly what I needed. It works perfectly.

    Thread Starter sp4448

    (@sp4448)

    I have two tables, this code works perfectly with one but not at all with the other.

    The code is identical except for the column headings and I’ve gone over it repeatedly looking for an error.

    Is there a setting I’m overlooking?

    How would I add a wildcard setting within the code?

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi @sp4448,

    You are right! The search form encodes the arguments, but the plugin does not decode them. I added the decoding right away. You’ll have it with the next update.

    Thanks for reporting! ??

    Best regards,
    Peter

    Thread Starter sp4448

    (@sp4448)

    Awesome! Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to create search form’ is closed to new replies.