# List getSelectedValue how to setup custom parameter?

**URL:** <https://forum.inductiveautomation.com/t/list-getselectedvalue-how-to-setup-custom-parameter/19308>\
**Category:** Ignition\
**Tags:** ignition79, database\
**Created:** [August 17, 2018, 7:52pm UTC](https://forum.inductiveautomation.com/t/list-getselectedvalue-how-to-setup-custom-parameter/19308 "2018-08-17T19:52:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawel.kondol](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@pawel.kondol](https://forum.inductiveautomation.com/u/pawel.kondol)\
**Post date:** [August 17, 2018, 7:52pm UTC](https://forum.inductiveautomation.com/t/list-getselectedvalue-how-to-setup-custom-parameter/19308/1 "2018-08-17T19:52:27Z")

</div>

Hello,

I have two list boxes Line and Model. Model is depending from what i have selected in Line list.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b76b5111053a19115c6dde936267376cbb4b6150.png)  
After these selections I would like to get both selected values and add in to table.  
I have added this code in to mouse click: value = event.source.getSelectedValue()  
I can print these values in to console but I have no idea how to assign this value in to button and then add in to table. I was thinking to create custom properties for each list but I am getting error: when adding this: event.source.getSelectedValue().

I hope somebody will be able to help me with this.

All help much appreciated.

Regards  
Pawel

---

<div class="post-metadata">

**Author:** ![pawel.kondol](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@pawel.kondol](https://forum.inductiveautomation.com/u/pawel.kondol)\
**Post date:** [August 20, 2018, 3:02pm UTC](https://forum.inductiveautomation.com/t/list-getselectedvalue-how-to-setup-custom-parameter/19308/2 "2018-08-20T15:02:35Z")

</div>

Ok, I have figured this out.
