# How to set a category to play music

**URL:** <https://community.thunkable.com/t/how-to-set-a-category-to-play-music/298721>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, media\
**Created:** [November 1, 2019, 2:04pm UTC](https://community.thunkable.com/t/how-to-set-a-category-to-play-music/298721 "2019-11-01T14:04:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [November 1, 2019, 2:04pm UTC](https://community.thunkable.com/t/how-to-set-a-category-to-play-music/298721/1 "2019-11-01T14:04:30Z")

</div>

Hi all! 👋

I am making a media playing app. There are 4 categories of music the user can select on Screen1.

 ![Screenshot_20191022-133036_Thunkable.jpg](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d03146d9b3e9a8af74277118966031173334d8a9.jpeg)  
 ![Screenshot_20191022-133139_Thunkable (1).jpg](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/87c3693b0780acd5629feedb6d671f3eb26f6fed.jpeg)

When the user chooses one, this navigates to the Media screen. The music instantly begins to play, called in a shuffled order from a column of links in a local spreadsheet.

**The goal: I need to tell the app to play music only from the category they selected when they arrive on the Media screen.**

I’m unsure how to achieve this on 1 screen successfully. I could make 4 separate Media screens, but I was told that is not wise. I was also told not to have a navigation button do any other functions, so I’m really unsure how to achieve this!

**Q: How does the app know which button was clicked on the previous screen?** 🤔

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [November 1, 2019, 2:34pm UTC](https://community.thunkable.com/t/how-to-set-a-category-to-play-music/298721/2 "2019-11-01T14:34:27Z")

</div>

Hi @looovelee! 👋

You need to transfer a value from screen1 to screen2, right?  
For your case, the value will be the user’s mood. He will choose it on screen1, and will go to the next screen with the mood.  
Going from one screen to another screen is more commonly known as **sending `start value`**.

Refer to my tutorial on _“ **How to use StartValue with Thunkable X** ”_ -

> [@How to use StartValue in Thunkable X with LocalStorage](http://community.thunkable.com/t/how-to-use-startvalue-in-thunkable-x-with-localstorage/115613):
>
> Hello, Thunkers! In this post, we’ll talk about How to implement StartValue in App I saw many users seeking for the solution for StartValue in Thunkable X… thinking So, finally, I found myself a solution and I want you all to have a look at it grin So, if you want to transfer any type of value to another screen, you may try using LocalStorage for this. I have some code blocks related to the above idea. You may take reference from them below : Sending Start Value [image] Getting Start…

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [November 5, 2019, 2:30pm UTC](https://community.thunkable.com/t/how-to-set-a-category-to-play-music/298721/3 "2019-11-05T14:30:18Z")

</div>

Thanks a million Kartik! I will review this - I appreciate the advice so much. Looking forward to learning about sending a start value. 😌

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [November 5, 2019, 2:50pm UTC](https://community.thunkable.com/t/how-to-set-a-category-to-play-music/298721/4 "2019-11-05T14:50:50Z")

</div>

I would be happy if my tutorial helps you! 😊

---

<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:08pm UTC](https://community.thunkable.com/t/how-to-set-a-category-to-play-music/298721/5 "2024-11-08T12:08:24Z")

</div>


