Listbox Default value at Startup
-
I have a search listbox and it works perfectly.
I get a list of ALL the values and when I chose one out of the listbox, it shows only the value selected. Perfect.
But I would like to, at startup, have an empty page and then when I select a value from the listbox, shows those.
I have tried “No search condition = show no rows “. It show no rows at startup. Perfect.
But when I select a value in the listbox, it still show nothing.
How can I do this:
Page at startup show no rows, but when I select the correct value from the Listbox, it must shows those rows.
-
This topic was modified 2 years, 6 months ago by
sagolfer.
-
This topic was modified 2 years, 6 months ago by
-
Hi @sagolfer
Thank you for reaching out.
We tested this but it works on our site. Can you share a public URL for further analyses? Please use the contact form on the plugin website if you prefer to share this information in private:
https://wpdataaccess.com/contact/Thanks you,
PeterPeter, Thanks for you response.
I have also made some further testes.
It works only when you use paging. I do not want to use paging.
Hi @sagolfer
Sorry, you cannot use this feature without paging. If you turn off paging the plugin loads all the table data in your browser on page load and disconnects from the server. Listbox selections or search field changes won’t have any effect. How about just using paging?
If you really don’t want to use paging you could change the pageLength to make sure you query all rows at once. This feature is documented here:
https://wpdataaccess.com/docs/data-tables-advanced-features/advanced-settings/In that case you might also want to remove the paging element? This is documented here:
https://wpdataaccess.com/docs/data-tables/extension-manager/Does this help?
PeterHi there,
I’m going to mark this as resolved as we haven’t heard from you in a while.
Feel free to create a new thread if you have other questions.
Thanks!
The topic ‘Listbox Default value at Startup’ is closed to new replies.