This discussion is about how to make images added on one screen appear correctly on another screen in Thunkable, including saving and displaying multiple images

Hi, I’m building a wardrobe app and I’m having trouble displaying images across screens.

On my “Add Item” screen, users upload a photo from their gallery or take a picture using the camera. I want those images to show on my “Wardrobe” screen when they click “Add to Wardrobe,” and I want multiple images to appear (not just one).

Right now, I’m using a stored variable to save the image, but when I go to the next screen, the same image shows for all items in the wardrobe.

How do I make it so that when I click “Add to Wardrobe” on my Add Item screen, the selected image appears correctly on my Wardrobe screen?

I also want this to work multiple times so I can keep adding different images to my wardrobe.

Thank you!

Hey @senior1 ,

Caveat, I have a lot more experience with the record and playback sound features than with taking and storing photos, but this feels very similar to something I ran into there.

What I suspect is happening is that when you save the photo to a stored variable, Thunkable is actually saving a file path or URL from cache, not the image itself.

I can’t test right now, but if you try displaying that same stored variable in a label instead of an image component, you’ll probably see something like “/cache/image.png”. That means it’s just pointing to the most recent photo. When you take a new one, it overwrites the old path, and if you close the app, it can disappear completely.

That would explain why all your wardrobe items show the same image.

If that’s the case, the reliable way to fix it is to upload each image to a backend like Firebase or Cloudinary. Once the image is hosted, you get a permanent URL, which you can save to a stored variable, and each item can display its own image properly.

Grant

Are you using a data source? For that kind of feature, I wouldn’t recommend saving everything into a variable.

If you have screenshots of your components and blocks, that would help a lot.

Hello, I was able to make multiple images show up on the wardrobe page, using a data lister viewer and Cloudinary. However, when I click generate outfit, the photos shown on the outfit screen are all the same images. This is the coding in the add item screen:

And this is the new outfit screen blocks:

How do I make the images shown on the new outfit screen all different images?

Hi @senior1 ,

You’re pulling from the same Row ID each time, so all three images end up identical.

Right now every “get value” is using that one app variable RowID1. That means it keeps grabbing the same row over and over.

What you want to do instead is store a different Row ID for each item when you create it. When you add a row, take the green “row id” output and save it to its own variable or list. Then on the outfit screen, use a different Row ID for each image slot.

So basically:

  • save each new row’s Row ID separately

  • don’t reuse the same variable for all three images

  • pass or store multiple IDs, then load each one individually

Once each image is tied to a different Row ID, they’ll show up correctly.

Hi @grant.mccallum

Thank you for explaining that, it makes sense :+1:

Would you be able to show me exactly how to set it up step by step (maybe with a quick example or screenshot)? I just want to make sure I’m doing it correctly and not missing anything. This is my current app variable RowID1:

I’d really appreciate your help with that!

Hi @senior1

It’ll probably be easier for me to guide you if I can see the actual project, since there are a couple things I’m not totally clear on yet.

For example, what exactly does OutfitScreen need to show? And do the uploaded photos need to stay saved after the app is closed and reopened?

You can share the project link here, or send it to me by email at tenukisoftware@gmail.com and I’ll take a look.

Grant