• Resolved torzmanian dev

    (@torzmanian-dev)


    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://www.ads-software.com/plugins/tablepress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    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: https://tablepress.org/extensions/datatables-columnfilterwidgets/

    Regards,
    Tobias

    Thread Starter torzmanian dev

    (@torzmanian-dev)

    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

    (@tobiasbg)

    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

    (@torzmanian-dev)

    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

    (@tobiasbg)

    Hi,

    yes, you would generate those small tables in TablePress.

    Regards,
    Tobias

    Thread Starter torzmanian dev

    (@torzmanian-dev)

    Got it!

    Thank you so much for your help!!

    Best,
    Torz

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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 here in the plugin directory. Thanks!

    Thread Starter torzmanian dev

    (@torzmanian-dev)

    Ok great — just rated.

    Thanks again!

    Best,
    Torz

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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.