# How to compose value from drop down

**URL:** <https://forums.losant.com/t/how-to-compose-value-from-drop-down/4767>\
**Category:** Help\
**Tags:** dashboard, input-control\
**Created:** [October 10, 2022, 10:25am UTC](https://forums.losant.com/t/how-to-compose-value-from-drop-down/4767 "2022-10-10T10:25:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo\_Proxy](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Post date:** [October 10, 2022, 10:25am UTC](https://forums.losant.com/t/how-to-compose-value-from-drop-down/4767/1 "2022-10-10T10:25:25Z")

</div>

Hi there,  
I can’t figure out how to create a payload from the input control.  
I have value and option

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/b/b5758ee96e1710cef09a8ffbec34f2bd7de8687e.png)

So in the generate button

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/3/39d91a0d9279089115a449da4d688358ea8f63b1.png)

I want to put the value, tried both Value and value property but don’t seem to exist?

Cheers.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [October 10, 2022, 11:57am UTC](https://forums.losant.com/t/how-to-compose-value-from-drop-down/4767/2 "2022-10-10T11:57:13Z")

</div>

Based on your screenshots it should just be:

```json
{
  "deviceName": "{{deviceName}}"
}

```

Did you try that and find it not working?

---

<div class="post-metadata">

**Author:** ![Paolo\_Proxy](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Post date:** [October 10, 2022, 12:59pm UTC](https://forums.losant.com/t/how-to-compose-value-from-drop-down/4767/3 "2022-10-10T12:59:44Z")

</div>

Ah that was easy! Wouldn’t be nice if there is an option to autofill the dropdown from the devices?

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [October 10, 2022, 1:18pm UTC](https://forums.losant.com/t/how-to-compose-value-from-drop-down/4767/4 "2022-10-10T13:18:18Z")

</div>

We do have an open feature request for a device selector input in that block; I’ll add your +1 to that request.
