CSV to HTML – search2


Search – set a requirement for number of characters in search

You can set this requiremeand you could also set a custom message if requirement is not valid by user.

Shortcode
[csvtohtml_create
source_type="guess"
path="large"
source_files="*.csv"
search_functionality="yes
searchbutton_text="Search now!"
resetbutton_text="Start all over!"
include_rows="1-30" //Just include the first 30 rows for demo
search_requiredchars="2"
search_requiredchars_message = "You have not entered 2 characters. Try again!"
measurequantiletimesexageethnicvalue
lx2.50%2017-19Female0 yearsTotal100000
lx2.50%2017-19Female1 yearsTotal99543
lx2.50%2017-19Female2 yearsTotal99512
lx2.50%2017-19Female3 yearsTotal99490
lx2.50%2017-19Female4 yearsTotal99474
lx2.50%2017-19Female5 yearsTotal99462
lx2.50%2017-19Female6 yearsTotal99452
lx2.50%2017-19Female7 yearsTotal99443
lx2.50%2017-19Female8 yearsTotal99435
lx2.50%2017-19Female9 yearsTotal99427
lx2.50%2017-19Female10 yearsTotal99419
lx2.50%2017-19Female11 yearsTotal99410
lx2.50%2017-19Female12 yearsTotal99399
lx2.50%2017-19Female13 yearsTotal99387
lx2.50%2017-19Female14 yearsTotal99372
lx2.50%2017-19Female15 yearsTotal99354
lx2.50%2017-19Female16 yearsTotal99332
lx2.50%2017-19Female17 yearsTotal99306
lx2.50%2017-19Female18 yearsTotal99276
lx2.50%2017-19Female19 yearsTotal99243
lx2.50%2017-19Female20 yearsTotal99207
lx2.50%2017-19Female21 yearsTotal99169
lx2.50%2017-19Female22 yearsTotal99129
lx2.50%2017-19Female23 yearsTotal99089
lx2.50%2017-19Female24 yearsTotal99049
lx2.50%2017-19Female25 yearsTotal99009
lx2.50%2017-19Female26 yearsTotal98970
lx2.50%2017-19Female27 yearsTotal98931
lx2.50%2017-19Female28 yearsTotal98893
lx2.50%2017-19Female29 yearsTotal98854

Search – when results not found

It’s possible to add a custom message when a searchstring is not found: (If this attribute is not added whole table will show up). Search for something you know does not exist in table and this custom message will show up. For example search for dfsdfwerowieuroiwu for this table below.

Shortcode
[csvtohtml_create
source_type="guess"
path="large"
source_files="*.csv"
search_functionality="yes
searchbutton_text="Search now!"
resetbutton_text="Start all over!"
include_rows="1-30" //Just include the first 30 rows for demo
notfound_message = "We are sorry. The thing you searched for does not exist."
measurequantiletimesexageethnicvalue
lx2.50%2017-19Female0 yearsTotal100000
lx2.50%2017-19Female1 yearsTotal99543
lx2.50%2017-19Female2 yearsTotal99512
lx2.50%2017-19Female3 yearsTotal99490
lx2.50%2017-19Female4 yearsTotal99474
lx2.50%2017-19Female5 yearsTotal99462
lx2.50%2017-19Female6 yearsTotal99452
lx2.50%2017-19Female7 yearsTotal99443
lx2.50%2017-19Female8 yearsTotal99435
lx2.50%2017-19Female9 yearsTotal99427
lx2.50%2017-19Female10 yearsTotal99419
lx2.50%2017-19Female11 yearsTotal99410
lx2.50%2017-19Female12 yearsTotal99399
lx2.50%2017-19Female13 yearsTotal99387
lx2.50%2017-19Female14 yearsTotal99372
lx2.50%2017-19Female15 yearsTotal99354
lx2.50%2017-19Female16 yearsTotal99332
lx2.50%2017-19Female17 yearsTotal99306
lx2.50%2017-19Female18 yearsTotal99276
lx2.50%2017-19Female19 yearsTotal99243
lx2.50%2017-19Female20 yearsTotal99207
lx2.50%2017-19Female21 yearsTotal99169
lx2.50%2017-19Female22 yearsTotal99129
lx2.50%2017-19Female23 yearsTotal99089
lx2.50%2017-19Female24 yearsTotal99049
lx2.50%2017-19Female25 yearsTotal99009
lx2.50%2017-19Female26 yearsTotal98970
lx2.50%2017-19Female27 yearsTotal98931
lx2.50%2017-19Female28 yearsTotal98893
lx2.50%2017-19Female29 yearsTotal98854

Search – placeholder

It’s possible to add a placeholder to the searchinput field very easily. (Placeholder = text that shows as a description in the inputfield but disappears when user starts to enter)

Shortcode
[csvtohtml_create
source_type="guess"
path="large"
source_files="*.csv"
search_functionality="yes
searchbutton_text="Search now!"
resetbutton_text="Start all over!"
include_rows="1-30" //Just include the first 30 rows for demo
notfound_message = "We are sorry. The thing you searched for does not exist."
searchinput_placeholder="Do your search!"
measurequantiletimesexageethnicvalue
lx2.50%2017-19Female0 yearsTotal100000
lx2.50%2017-19Female1 yearsTotal99543
lx2.50%2017-19Female2 yearsTotal99512
lx2.50%2017-19Female3 yearsTotal99490
lx2.50%2017-19Female4 yearsTotal99474
lx2.50%2017-19Female5 yearsTotal99462
lx2.50%2017-19Female6 yearsTotal99452
lx2.50%2017-19Female7 yearsTotal99443
lx2.50%2017-19Female8 yearsTotal99435
lx2.50%2017-19Female9 yearsTotal99427
lx2.50%2017-19Female10 yearsTotal99419
lx2.50%2017-19Female11 yearsTotal99410
lx2.50%2017-19Female12 yearsTotal99399
lx2.50%2017-19Female13 yearsTotal99387
lx2.50%2017-19Female14 yearsTotal99372
lx2.50%2017-19Female15 yearsTotal99354
lx2.50%2017-19Female16 yearsTotal99332
lx2.50%2017-19Female17 yearsTotal99306
lx2.50%2017-19Female18 yearsTotal99276
lx2.50%2017-19Female19 yearsTotal99243
lx2.50%2017-19Female20 yearsTotal99207
lx2.50%2017-19Female21 yearsTotal99169
lx2.50%2017-19Female22 yearsTotal99129
lx2.50%2017-19Female23 yearsTotal99089
lx2.50%2017-19Female24 yearsTotal99049
lx2.50%2017-19Female25 yearsTotal99009
lx2.50%2017-19Female26 yearsTotal98970
lx2.50%2017-19Female27 yearsTotal98931
lx2.50%2017-19Female28 yearsTotal98893
lx2.50%2017-19Female29 yearsTotal98854
Search – hide table at load

If you want to hide your table when your page loads you could add attribute hidetable_load.

Shortcode
[csvtohtml_create
source_type="guess"
path="large"
source_files="*.csv"
search_functionality="yes
searchbutton_text="Search now!"
resetbutton_text="Start all over!"
include_rows="1-30" //Just include the first 30 rows for demo
notfound_message = "We are sorry. The thing you searched for does not exist."
searchinput_placeholder="Do your search!"
hidetable_load="yes"
measurequantiletimesexageethnicvalue
lx2.50%2017-19Female0 yearsTotal100000
lx2.50%2017-19Female1 yearsTotal99543
lx2.50%2017-19Female2 yearsTotal99512
lx2.50%2017-19Female3 yearsTotal99490
lx2.50%2017-19Female4 yearsTotal99474
lx2.50%2017-19Female5 yearsTotal99462
lx2.50%2017-19Female6 yearsTotal99452
lx2.50%2017-19Female7 yearsTotal99443
lx2.50%2017-19Female8 yearsTotal99435
lx2.50%2017-19Female9 yearsTotal99427
lx2.50%2017-19Female10 yearsTotal99419
lx2.50%2017-19Female11 yearsTotal99410
lx2.50%2017-19Female12 yearsTotal99399
lx2.50%2017-19Female13 yearsTotal99387
lx2.50%2017-19Female14 yearsTotal99372
lx2.50%2017-19Female15 yearsTotal99354
lx2.50%2017-19Female16 yearsTotal99332
lx2.50%2017-19Female17 yearsTotal99306
lx2.50%2017-19Female18 yearsTotal99276
lx2.50%2017-19Female19 yearsTotal99243
lx2.50%2017-19Female20 yearsTotal99207
lx2.50%2017-19Female21 yearsTotal99169
lx2.50%2017-19Female22 yearsTotal99129
lx2.50%2017-19Female23 yearsTotal99089
lx2.50%2017-19Female24 yearsTotal99049
lx2.50%2017-19Female25 yearsTotal99009
lx2.50%2017-19Female26 yearsTotal98970
lx2.50%2017-19Female27 yearsTotal98931
lx2.50%2017-19Female28 yearsTotal98893
lx2.50%2017-19Female29 yearsTotal98854
Search – hide table at reset

When you click on resetbutton the table goes back to it’s original state. If you have attribute hidetable_load set to yes it still shows the table when clicking on the resetbutton. If you want to hide table when doing a reset you could add attribute hidetable_reset

Shortcode
[csvtohtml_create
source_type="guess"
path="large"
source_files="*.csv"
search_functionality="yes
searchbutton_text="Search now!"
resetbutton_text="Start all over!"
include_rows="1-30" //Just include the first 30 rows for demo
notfound_message = "We are sorry. The thing you searched for does not exist."
searchinput_placeholder="Do your search!"
hidetable_load="yes"
hidetable_reset="yes"
measurequantiletimesexageethnicvalue
lx2.50%2017-19Female0 yearsTotal100000
lx2.50%2017-19Female1 yearsTotal99543
lx2.50%2017-19Female2 yearsTotal99512
lx2.50%2017-19Female3 yearsTotal99490
lx2.50%2017-19Female4 yearsTotal99474
lx2.50%2017-19Female5 yearsTotal99462
lx2.50%2017-19Female6 yearsTotal99452
lx2.50%2017-19Female7 yearsTotal99443
lx2.50%2017-19Female8 yearsTotal99435
lx2.50%2017-19Female9 yearsTotal99427
lx2.50%2017-19Female10 yearsTotal99419
lx2.50%2017-19Female11 yearsTotal99410
lx2.50%2017-19Female12 yearsTotal99399
lx2.50%2017-19Female13 yearsTotal99387
lx2.50%2017-19Female14 yearsTotal99372
lx2.50%2017-19Female15 yearsTotal99354
lx2.50%2017-19Female16 yearsTotal99332
lx2.50%2017-19Female17 yearsTotal99306
lx2.50%2017-19Female18 yearsTotal99276
lx2.50%2017-19Female19 yearsTotal99243
lx2.50%2017-19Female20 yearsTotal99207
lx2.50%2017-19Female21 yearsTotal99169
lx2.50%2017-19Female22 yearsTotal99129
lx2.50%2017-19Female23 yearsTotal99089
lx2.50%2017-19Female24 yearsTotal99049
lx2.50%2017-19Female25 yearsTotal99009
lx2.50%2017-19Female26 yearsTotal98970
lx2.50%2017-19Female27 yearsTotal98931
lx2.50%2017-19Female28 yearsTotal98893
lx2.50%2017-19Female29 yearsTotal98854

Search – realtimesearch

Sometimes you want to search when user starts to type. The attribute search_realtime makes this easy to implement. After user has stopped typing,, the plugin does a search in about a second.

Shortcode
[csvtohtml_create
source_type="guess"
path="large"
source_files="*.csv"
search_functionality="yes
searchbutton_text="Search now!"
resetbutton_text="Start all over!"
include_rows="1-30" //Just include the first 30 rows for demo
notfound_message = "We are sorry. The thing you searched for does not exist."
searchinput_placeholder="Do your search!"
hidetable_load="yes"
hidetable_reset="yes"
search_realtime="yes"
measurequantiletimesexageethnicvalue
lx2.50%2017-19Female0 yearsTotal100000
lx2.50%2017-19Female1 yearsTotal99543
lx2.50%2017-19Female2 yearsTotal99512
lx2.50%2017-19Female3 yearsTotal99490
lx2.50%2017-19Female4 yearsTotal99474
lx2.50%2017-19Female5 yearsTotal99462
lx2.50%2017-19Female6 yearsTotal99452
lx2.50%2017-19Female7 yearsTotal99443
lx2.50%2017-19Female8 yearsTotal99435
lx2.50%2017-19Female9 yearsTotal99427
lx2.50%2017-19Female10 yearsTotal99419
lx2.50%2017-19Female11 yearsTotal99410
lx2.50%2017-19Female12 yearsTotal99399
lx2.50%2017-19Female13 yearsTotal99387
lx2.50%2017-19Female14 yearsTotal99372
lx2.50%2017-19Female15 yearsTotal99354
lx2.50%2017-19Female16 yearsTotal99332
lx2.50%2017-19Female17 yearsTotal99306
lx2.50%2017-19Female18 yearsTotal99276
lx2.50%2017-19Female19 yearsTotal99243
lx2.50%2017-19Female20 yearsTotal99207
lx2.50%2017-19Female21 yearsTotal99169
lx2.50%2017-19Female22 yearsTotal99129
lx2.50%2017-19Female23 yearsTotal99089
lx2.50%2017-19Female24 yearsTotal99049
lx2.50%2017-19Female25 yearsTotal99009
lx2.50%2017-19Female26 yearsTotal98970
lx2.50%2017-19Female27 yearsTotal98931
lx2.50%2017-19Female28 yearsTotal98893
lx2.50%2017-19Female29 yearsTotal98854