Title: How to create dynamic JSON get string.
Last modified: August 24, 2016

---

# How to create dynamic JSON get string.

 *  Resolved [morrnel](https://wordpress.org/support/users/morrnel/)
 * (@morrnel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-dynamic-json-get-string/)
 * Hello,
    I wish to display a list of 1 to 30 rows based upon a visitor’s selection
   criteria. If ‘RI’ selected, the 5 counties returned. If ‘MN’ then 87 counties.
   These are two extreme examples. Never do I want to just display something as 
   there is only 2% chance the list will be correct
 * I am asking the visitor to enter the code in a modal or widget, select search,
   then display the page of data.
 * Is this possible? How is it done?
 * Thanks!
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-dynamic-json-get-string/#post-5998432)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Unfortunately, I can’t really think of a solution here. You might want to take
   a look at the TablePress Extensions like [http://tablepress.org/extensions/datatables-columnfilterwidgets/](http://tablepress.org/extensions/datatables-columnfilterwidgets/)
   for a filtering with a selection, but for more complex filtering needs, you will
   likely have to look into using a custom solution based on the API functions of
   the DataTables JS library from [http://www.datatables.net/](http://www.datatables.net/)(
   which is the JS library that TablePress uses).
 * Regards,
    Tobias
 *  Thread Starter [morrnel](https://wordpress.org/support/users/morrnel/)
 * (@morrnel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-dynamic-json-get-string/#post-5998632)
 * Thanks for the quick response!
    Are you expecting the data to typically be static
   prior to display?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-dynamic-json-get-string/#post-5998651)
 * Hi,
 * well, TablePress tables are “static”, yes. And TablePress then prints fixed HTML
   code to the page. What you do after that in the browser with JavaScript can be
   considered “dynamic”.
 * Regards,
    Tobias

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

The topic ‘How to create dynamic JSON get string.’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-dynamic-json-get-string/#post-5998651)
 * Status: resolved