Table of Contents
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. Your search form needs to use the get method to send the values to the data table page. Please note this will not work with post! Your search field names must match the URL parameter convention.
Remove data table search options #
You should remove all other search options from your data table page when you use a search form. Additional search values entered on the data table page will not reset the search. The URL parameters on the data table page cannot be undone, unless you remove them.
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. Please follow the instruction in the template.
Notes #
- This is a free fratures and does not require a premium license