How to hide/show a group of images all at once using "for each item"?

Hello,

I created a list of images and want to show one at a time depending on the index label I want: example if I type 1 I want the cat image to show, 2= dog and so one.
Since there is a couple dozen images I thought that using “For each item in list” component" like this would be best:

image

What I hoped from this code to do is hide all images and only show the one image that match the it’s index.

this doesn’t seem to be working coz images are not labels and the program error say that it was expecting a label not an image.

Any workaround or maybe is there a better idea?

Thanks :slight_smile:

Hi, @Houssam_Zakaria! :wave:
Welcome back! :star2:


Just 3 questions -

  • These seem Kodular blocks - can you explain what platform are you using?

  • You have categorized this topic as #classicdiscuss ?

  • Are you intended to build this in Thunkable X?

Thanks! :blush:

1 Like

Yeah you got me:). I started using kodular for this particular project coz thunkable test simulator wasn’t working for me for some reason, it kept crashing(very frustrating tbh)

Aren’t Kodular and thunkable similar in functionality?

Thanks

Hi, @Houssam_Zakaria! :wave:

First of all, if you are still intended to use Kodular for your project, it would be better to ask in their native community @ community.kodular.io .


Look,

  • Thunkable has an X version (x.thunkable.com), which enables us to build apps for both iOS and Android. If you mention this platform’s live app, then I am coming upon no errors.
  • The Thunkable Classic Version (app.thunkable) which is almost deprecated, and about to close in a few months. This platform, was for native android apps, so yes, it’s of similar functionality of Kodular.

So, are you still continuing your project in kodular? If yes, you should follow the very first step I metioned :slightly_smiling_face:

Thanks! :blush:

Fair enough, I will give the X version a try, thks :slight_smile:

2 Likes

Hi, @Houssam_Zakaria! :wave:


If my post helped you, please mark it as Solution :white_check_mark: to mark this topic as Solved.

Good Luck! :+1:
Thanks! :blush: