A search form is a great way to use URL parameters in a user friendly way. It allows a user to search for specific values in specific fields using plain values and wildcards.
To launch a search form we need to create two separate pages:
- A page containing the search form
- A page containing the data table
The user fills out the search form and presses the submit button. The search form sends values to the data table page. The data table page processes the URL arguments.
Premium features! #
- Premium users can access URL parameters directly in the default where clause.
- This offers a lot more control and fine tuning.
- Premium users can also access URL parameters from http POST requests.
Remove data table search options #
You should remove all other search options from your data table page when you use a search form.
Remove search options from your data table:
- Manually remove search options (see dom options)
OR
- Remove search options using the extention manager (for premium users: much easier)
If you are a premium user and individual column search is enabled for your table, add the following options to advanced options to disable this feature:
Advanced options #
{ "wpda_searchbox": "none" }
Demo #
Template #
You can download a Code Manager template here:
This example contains the search form only and works with both the free and premium version. Please follow the instruction in the template.