# Multiple choice with image and sound question material

**URL:** <https://community.thunkable.com/t/multiple-choice-with-image-and-sound-question-material/2360073>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, help\
**Created:** [April 5, 2023, 3:24pm UTC](https://community.thunkable.com/t/multiple-choice-with-image-and-sound-question-material/2360073 "2023-04-05T15:24:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nwr](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@nwr](https://community.thunkable.com/u/nwr)\
**Post date:** [April 5, 2023, 3:24pm UTC](https://community.thunkable.com/t/multiple-choice-with-image-and-sound-question-material/2360073/1 "2023-04-05T15:24:06Z")

</div>

Good evening from GMT +8 guys.

I have a multiple choice application whose question material is stored in Google Spreadshet.

This quiz runs randomly.

I made the image component is subject of the question. So in the application the question is like: What picture is it?

The “red dot” is, I want to add sound button as the question material too in the app. So the question material in the application has images and sounds. I save sound and image files in G.Spreadsheet in URLs form.

The question is how to make sure that when the question is an image, the image component is displayed and the sound button are hidden. And when the question is a sound, then the sound button is displayed and the image component is hidden.

here is screenshot:

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

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/c/9cc08d22945e14eeacec2e9bab3a1ff90c45ac39.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/4/94ce50ae6c47ad043e567b89cd3b43e3eb0ae639.png)

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

I’m sorry if the language is not quite right. Any answer would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 5, 2023, 4:27pm UTC](https://community.thunkable.com/t/multiple-choice-with-image-and-sound-question-material/2360073/2 "2023-04-05T16:27:08Z")

</div>

I don’t see any if/else blocks in your code to do what you are asking but it would look something like this:

```auto
If question is about an image
   show image
   hide sound button
else
   hide image
   show sound button

```

How do you determine if you’re going to ask the user a question about an image or a sound? Is it just a random row number and the _skripsi_ column has a url for an image OR a sound? If so, then you need to do one of the following:

1. Add a column with a key indicator. Something like “image” or “sound” for each row. That way, you can check the value of that column for the current question and use my if/else algorithm above.

2. Determine if the url is for an image or a sound (perhaps, does it contain “.png” for example). Then use my if/else algorithm above.

I think you’ll find that #1 is easier and more consistent.

---

<div class="post-metadata">

**Author:** ![nwr](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@nwr](https://community.thunkable.com/u/nwr)\
**Post date:** [April 6, 2023, 3:26am UTC](https://community.thunkable.com/t/multiple-choice-with-image-and-sound-question-material/2360073/3 "2023-04-06T03:26:52Z")

</div>

Yes! I can do it. Thank you very much.

I see that you are the one who always answers my questions and gives me a lot of hints.

In my language, you are called Al-Huda, or the expert of hint. Thanks

Hopefully in this Ramadan everyone gets a Huda, whoever it is

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 6, 2023, 4:52am UTC](https://community.thunkable.com/t/multiple-choice-with-image-and-sound-question-material/2360073/4 "2023-04-06T04:52:14Z")

</div>

That’s very kind of you, thank you. I’m glad I could help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 5, 2023, 4:52am UTC](https://community.thunkable.com/t/multiple-choice-with-image-and-sound-question-material/2360073/5 "2023-07-05T04:52:17Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
