Title: Dropdown list based on table ID
Last modified: August 30, 2016

---

# Dropdown list based on table ID

 *  Resolved [przemm](https://wordpress.org/support/users/przemm/)
 * (@przemm)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/dropdown-list-based-on-table-id/)
 * Hi Tobias,
 * First of all let me take this opportunity to say that your plugin is fantastic!
 * I was wondering whether and how it would be possible to have a custom dropdown
   list in a post like:
 * A
    B C
 * and each of these values would dynamically load a table with assigned ID, so 
   for example A from the dropdown would load table 123, B would load 234 etc.
 * Can this be done?
 * Best regards
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/dropdown-list-based-on-table-id/#post-6529493)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * I see what you mean, but unfortunately, I’m not aware of an existing solution
   for this.
    The best approach is probably to create a page for each table and 
   add the Shortcode there. Then, you could maybe write some JavaScript code (e.
   g. using jQuery) that goes to the corresponding page when the value of the dropdown
   is changed.
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Dropdown list based on table ID’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/dropdown-list-based-on-table-id/#post-6529493)
 * Status: resolved