# Combobox with a dataset and selected record populates form

**URL:** <https://forum.inductiveautomation.com/t/combobox-with-a-dataset-and-selected-record-populates-form/9490>\
**Category:** General Discussion\
**Created:** [December 29, 2014, 4:42pm UTC](https://forum.inductiveautomation.com/t/combobox-with-a-dataset-and-selected-record-populates-form/9490 "2014-12-29T16:42:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gordon.maxwellIDM](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Gordon.maxwellIDM](https://forum.inductiveautomation.com/u/Gordon.maxwellIDM)\
**Post date:** [December 29, 2014, 4:42pm UTC](https://forum.inductiveautomation.com/t/combobox-with-a-dataset-and-selected-record-populates-form/9490/1 "2014-12-29T16:42:03Z")

</div>

Also if anyone has any idea instead of a table I want to use a combo box. I know how to populate the combo box with my data… but when a record in the combo box is selected I want it to populate my fields on my form??

Thank yall in advance

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [December 29, 2014, 5:07pm UTC](https://forum.inductiveautomation.com/t/combobox-with-a-dataset-and-selected-record-populates-form/9490/2 "2014-12-29T17:07:31Z")

</div>

Hi, I think it is a good idea.

Only the Form Table was designed to populate the fields. You would have to look at how the Form Table works and understand it (the Python source code is all there in the pa.forms script and on the Table component). Then apply that understanding to a combo box to work in a similar way.

Best,

---

<div class="post-metadata">

**Author:** ![Gordon.maxwellIDM](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Gordon.maxwellIDM](https://forum.inductiveautomation.com/u/Gordon.maxwellIDM)\
**Post date:** [December 29, 2014, 6:38pm UTC](https://forum.inductiveautomation.com/t/combobox-with-a-dataset-and-selected-record-populates-form/9490/3 "2014-12-29T18:38:19Z")

</div>

That is what I was wondering if anyone has done that yet! I do not like to waste time trying to figure it out…but I guess I will have too 🙂 If anyone has done this before some sample source code would be great.

Thank You

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [December 29, 2014, 9:29pm UTC](https://forum.inductiveautomation.com/t/combobox-with-a-dataset-and-selected-record-populates-form/9490/4 "2014-12-29T21:29:28Z")

</div>

Yes, that makes sense!
