Title: User selected table data
Last modified: August 22, 2016

---

# User selected table data

 *  Resolved [torzmanian dev](https://wordpress.org/support/users/torzmanian-dev/)
 * (@torzmanian-dev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/)
 * Hello,
 * First off thanks so much for creating the plugin! It’s very helpful to someone
   like myself who knows almost nothing about CSS editing..
    However, I have a question
   was hoping you could help me with.. I took a look at existing posts but unfortunately
   nothing popped up on this.
 * Basically, I am wondering if there is anyway to pass data (or toggle between 
   a set of cell values) based on what a user selects from a drop down menu.
 * There will be a drop-down menu with, for example, a list of cars;
    Toyota Saab
   Buick
 * Meanwhile, the table will have 4 rows corresponding to specs of the car. For 
   example:
    Top speed Price Fuel efficiency Lease price
 * I have pre-generated data for the 4 specs for each one of the 3 cars (so 3 [4
   ×1] matrices). What I want to do is populate the table with one of those matrices
   based on which car the user selects.
 * Is there any way to do this?
 * Thanks so much in advance for your help!!
 * Best,
    Torz
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639590)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I’m not really sure if I understand correctly, but if you put “Top speed”, “Price”,“
   Fuel efficiency”, and “Lease price” in the columns (2 to 5), and the car makes
   in the first column, you’d have a 4×5 table, for which you could use this TablePress
   Extension to get that dropdown: [http://tablepress.org/extensions/datatables-columnfilterwidgets/](http://tablepress.org/extensions/datatables-columnfilterwidgets/)
 * Regards,
    Tobias
 *  Thread Starter [torzmanian dev](https://wordpress.org/support/users/torzmanian-dev/)
 * (@torzmanian-dev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639605)
 * Hi,
 * Thanks so much for the speedy reply. Sorry maybe my description was a little 
   confusing. Basically, what I want to do is have a fixed table on the page. This
   table would have a dropdown menu above it with a bunch of selections. Based on
   which selection the user made, different data would populate the table — by this
   I mean entirely separate discrete sets of data would populate and fill all 4 
   rows. In other words the user would essentially toggle between entirely tables
   but of the same dimensions and in place.
 * By the looks of it the above extension seems to allows one to filter and manipulate
   the existing data within a table.
 * So was wondering if there is another extension or way to accomplish this…
 * I hope that creates clarity and not more confusion:)
 * Thank you again for your help!
 * Best,
    Torz
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639608)
 * Hi,
 * ah, thanks for the explanation. Now I understand.
 * Unfortunately, I’m not aware of a directly usable solution for that. Your best
   bet probbaly is to create all those different tables and then use some custom
   HTML and JavaScript to show/hide the one that was selected in the dropdown.
 * Regards,
    Tobias
 *  Thread Starter [torzmanian dev](https://wordpress.org/support/users/torzmanian-dev/)
 * (@torzmanian-dev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639612)
 * Ahh ok I see – I was afraid that might be the case:) I will look into that… just
   to confirm, I would still be able to use the tables generated with TablePress
   with that custom HTML and JavaScript is that right..?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639613)
 * Hi,
 * yes, you would generate those small tables in TablePress.
 * Regards,
    Tobias
 *  Thread Starter [torzmanian dev](https://wordpress.org/support/users/torzmanian-dev/)
 * (@torzmanian-dev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639615)
 * Got it!
 * Thank you so much for your help!!
 * Best,
    Torz
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639616)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!
 *  Thread Starter [torzmanian dev](https://wordpress.org/support/users/torzmanian-dev/)
 * (@torzmanian-dev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639619)
 * Ok great — just rated.
 * Thanks again!
 * Best,
    Torz
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639637)
 * Hi,
 * thanks, I really appreciate it!
 * Best wishes,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘User selected table data’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/user-selected-table-data/#post-5639637)
 * Status: resolved