Image Uploader Merge with Custom State's Image List NOT WORKING

I checked all previous posts about image uploaders but none of them seem to cover this issue.

Context: I am building a classical experience where a user can upload images for a listing, delete some if they want to and upload new ones to their already uploaded list of images.

Current setup:

  1. User can click “upload images” which then displays the images in a repeating group and resets the uploader:

  2. My workflow is that when the image uploader’s value count IS NOT the custom state’s image lists’ count that it should update the value of the custom state list by either 1) setting the custom state list of images to the image uploader value if count of the customer state is 0, or 2) merge the custom state list of images with the image uploader value if the count of the customer state is > 0.

My workflow:
1.

Problem: Sometimes it works and i add new images to the image uploader and it correctly updates the custom state and displays the new images merged with the old images. BUT sometimes it does not - completely randomly.

Has anyone experienced this before? Or has a better solution?
THANK YOU!

Fixed it! If anyone faced a similar problem, the solution i found was to not compare the multifile image uploader’s count to the custom state’s count to trigger the workflow, but to instead trigger the workflow everytime the multifile image uploader’s count is greater than 0.

1 Like

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