Random image generator

Hey Guys,

I need to have a set of images that are pretty much vouchers displayed randomly for each of my users. I also want people to either save this for later or be able to claim the voucher.

Does anyone know how I can go about doing this? I know I will need to make a repeating group of the images/vouchers but does anyone know how it can be selected randomly for my users?

The saving for later part I can hopefully figure out but generating the images randomly is the main problem I’m currently facing,

Thanks in advance.

Hi thepiggyprojectnz,

Just created a video for you to show how this works if you had randomnly selected profile images.

Hope this helps

If you have any questions, just pm me, happy to go on a quick call.

best regards,
Julius


For short tips on bubble & more check out tiplister.com. We have tips on Bubble, software, travel & work, so you no longer require endless reading to grow your knowledge. Add your own tips for a chance to get featured in our curated list of top tips of the week.

2 Likes

This has been extremely helpful @TipLister Thank you. It turns out I have come across another problem after solving this one. I have added a title and dollar value amount for the photo. So when we upload an image to the database, the admin would need to add a title, the value of the voucher and the voucher (image) itself. Generating the random image is fine but I can’t seem to bring up the title and the value of the corresponding image. Basically, the random image comes up but not the specific random image’s title or value. I have tried cracking it myself for a an hour or two but to no avail. Can you please help? (Again?)

Hi in this case, the title and dollar should be part of the new datatype you created. (in my example title and dollar would be fields of the datatype profile picture)

Then each user, needs a new field called profile picture type profile picture.

Then the user instead of, like before, having his image updated
Has his entire “profile picture” data field updated.

In the image as image source or in the text element showing the title you then have current users profile pictures title or current users profile pictures image.

Hope this is clear.

This topic was automatically closed after 70 days. New replies are no longer allowed.