# Select variable from the prompt

**URL:** <https://community.weweb.io/t/select-variable-from-the-prompt/6643>\
**Category:** Ask us anything\
**Tags:** xano\
**Created:** [January 27, 2024, 6:59pm UTC](https://community.weweb.io/t/select-variable-from-the-prompt/6643 "2024-01-27T18:59:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolfgangBangert](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@wolfgangBangert](https://community.weweb.io/u/wolfgangBangert)\
**Post date:** [January 27, 2024, 6:59pm UTC](https://community.weweb.io/t/select-variable-from-the-prompt/6643/1 "2024-01-27T18:59:19Z")

</div>

I have a select element.  
I can then enter a text after which the API query is then searched for in the array.  
Now I want to search directly in the backend using the API and can’t find the variable that takes over the text I just entered into the select field.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [January 29, 2024, 3:31pm UTC](https://community.weweb.io/t/select-variable-from-the-prompt/6643/2 "2024-01-29T15:31:36Z")

</div>

Hi @wolfgangBangert 👋

In case you haven’t seen this, here’s a video tutorial on [how to use the select element](https://academy.weweb.io/build-a-proof-of-concept/filter-a-list-dropdown/).

The select element should come with a component variable. If you rename the element here:

 ![CleanShot 2024-01-29 at 16.29.02@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8e426ccc4266e4993adb8fb1b30d56cacbdf6f2d.png)

It makes it easier to bind it’s variable later:

 ![CleanShot 2024-01-29 at 16.30.10@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/f/f8b403c560d778c8d2b6e3912afbadbb0a84e9c2.png)

Does that help?

If not, can you share a video of what you tried and where you’re stuck to help us help you?

---

<div class="post-metadata">

**Author:** ![wolfgangBangert](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@wolfgangBangert](https://community.weweb.io/u/wolfgangBangert)\
**Post date:** [January 30, 2024, 6:07am UTC](https://community.weweb.io/t/select-variable-from-the-prompt/6643/3 "2024-01-30T06:07:40Z")

</div>

hi Joyce,  
That’s not what I mean. I would like to make an API call here and search in the backend. For this I need the variable from the select field. I entered the id here as a value, but I don’t need it here. The text that I enter must be in the variable. in my example: “Wiede”. But I can’t access this text as a variable anywhere.

 ![Bildschirmfoto von Google Chrome (29-01-24, 19-45-42)](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/504aa97a4c6b6bae1104ff52defc8c3d87cabc60.png)

---

<div class="post-metadata">

**Author:** ![wolfgangBangert](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@wolfgangBangert](https://community.weweb.io/u/wolfgangBangert)\
**Post date:** [January 30, 2024, 6:08am UTC](https://community.weweb.io/t/select-variable-from-the-prompt/6643/4 "2024-01-30T06:08:15Z")

</div>

![Bildschirmfoto von Google Chrome (29-01-24, 19-47-38)](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/81084770b773bdf0691c8ab68cd154d1c917e166.png)
