# How to set a variable to clicked list item

**URL:** <https://community.thunkable.com/t/how-to-set-a-variable-to-clicked-list-item/74622>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [April 14, 2019, 11:48pm UTC](https://community.thunkable.com/t/how-to-set-a-variable-to-clicked-list-item/74622 "2019-04-14T23:48:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharity\_Official](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@Sharity\_Official](https://community.thunkable.com/u/Sharity_Official)\
**Post date:** [April 14, 2019, 11:48pm UTC](https://community.thunkable.com/t/how-to-set-a-variable-to-clicked-list-item/74622/1 "2019-04-14T23:48:27Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/6/6676bf97993c88487c96a30765fc00836a02b7d1.png)

When my red arrow is pointing, I would like the list item that is clicked to be set to the variable _Location_  
.  
**Please note I am an incomprehensible thunkable beginner**

---

<div class="post-metadata">

**Author:** ![cttricks](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cttricks/32/93678_2.png) [@cttricks](https://community.thunkable.com/u/cttricks)\
**Post date:** [April 15, 2019, 12:09pm UTC](https://community.thunkable.com/t/how-to-set-a-variable-to-clicked-list-item/74622/2 "2019-04-15T12:09:14Z")

</div>

Hello @Sharity_Official Welcome to the Community. . .  
Here is the solution of your query . . .

 ![Screenshot%20(135)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ec4c74c4235eeadeb1f12e74dc25366772fec809.png)

> [@Sharity\_Official](#):
>
> Please note I am an incomprehensible thunkable beginner

Feel free to ask your doubts/query if you have any during the app development! The Community is always here to help you.

**Note :** You are using thunkable cross plateform [**Thunkable X**] So you should set the post category to #thunkable-cross

//Ct tricks

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:14pm UTC](https://community.thunkable.com/t/how-to-set-a-variable-to-clicked-list-item/74622/3 "2024-11-08T12:14:01Z")

</div>


