Title: Gravity form database table field
Last modified: April 8, 2020

---

# Gravity form database table field

 *  Resolved [ishanivardhan](https://wordpress.org/support/users/ishanivardhan/)
 * (@ishanivardhan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gravity-form-database-table-field/)
 * Hello there,
    We have Maxicharts Gravity Form plugin which works great! But recently
   hit into an issue and not sure if this can even be achieved using Maxi-charts
   and it’s custom_search_criteria parameter.
 * We have a Gravity form with a dropdown field (like an Object Type field) that
   get’s its value directly from a database table (tbl name: test_list; fields: 
   id, name, division) and are trying to get a horizontalBar graph based on that
   field.
 * So, the values in DB table are
    1 Test 1 10 2 Test 2 20 3 Test 3 30
 * Using the below short-code, but doesn’t work.
 * `[gfchartsreports gf_form_id="10" include="91" type="horizontalBar" height="500px"
   chart_js_options="title: {display: true, text: 'Staff by Division', fontSize:
   28,fontColor:'#005eb8',fontStyle:'bold',padding:20}"]`
 * This simply shows no graph and random values (First Choice, Second Choice, so
   on on Y-Axis and 0, 0.2, 0.4, 0.6 on X-Axis)
 * Is there a way to produce graphs for fields that dynamically get values say from
   a database table?
    -  This topic was modified 6 years, 2 months ago by [ishanivardhan](https://wordpress.org/support/users/ishanivardhan/).

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

 *  Plugin Author [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * (@maxicharts)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gravity-form-database-table-field/#post-12649240)
 * Hi [@ishanivardhan](https://wordpress.org/support/users/ishanivardhan/) : what
   kind of database table are you talking about ? Sql ?
 *  Thread Starter [ishanivardhan](https://wordpress.org/support/users/ishanivardhan/)
 * (@ishanivardhan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gravity-form-database-table-field/#post-12649506)
 * Yes, normal mysql table. In Gravity forms, the dropdown field can have “Populate
   choices dynamically” wherein we can attach any of the database tables. Not sure
   how to report/graph on such fields.
    -  This reply was modified 6 years, 2 months ago by [ishanivardhan](https://wordpress.org/support/users/ishanivardhan/).
 *  Plugin Author [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * (@maxicharts)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gravity-form-database-table-field/#post-12649725)
 * This could be a custom development, please send your project with a detailled
   description and example at : [https://maxicharts.com/contact/](https://maxicharts.com/contact/)
   
   Thank you
 *  Thread Starter [ishanivardhan](https://wordpress.org/support/users/ishanivardhan/)
 * (@ishanivardhan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/gravity-form-database-table-field/#post-12650034)
 * Done. Your response and help is appreciated. Thanks!

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

The topic ‘Gravity form database table field’ is closed to new replies.

 * ![](https://ps.w.org/maxicharts/assets/icon-256x256.png?rev=1737118)
 * [MaxiCharts](https://wordpress.org/plugins/maxicharts/)
 * [Support Threads](https://wordpress.org/support/plugin/maxicharts/)
 * [Active Topics](https://wordpress.org/support/plugin/maxicharts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxicharts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxicharts/reviews/)

## Tags

 * [gravity form](https://wordpress.org/support/topic-tag/gravity-form/)

 * 4 replies
 * 2 participants
 * Last reply from: [ishanivardhan](https://wordpress.org/support/users/ishanivardhan/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/gravity-form-database-table-field/#post-12650034)
 * Status: resolved