Wix upload and submit button does not add a new item in collection, instead update items

Hello,

I have an image collection and would like to allow users to submit images and with some metadata. To do that I have created a regular page with image elements and some text input elements, that are connected to a dataset of that collection . The first screenshot shows what I would like the page to look like.

However, once I add an item to that collection the metadata remains baked in the text elements. If I try to add a new item, it doesn’t get added but instead it updates the last item added. Below is a screenshot of what the text element fields look like if I try to add another item.

I have to say to though, that I have a dynamic page that is connected to the same collection, but don’t understand how that is propagated to the current page and why new items don’t get added but just updated. Anyone have an idea?

Is your dataset set to Read / Write? This might be the cause of the issue. Set it to Write Only and then test it out. Also if your input elements are on a dynamic page, or if you are also reading the CMS collection on the same page, use a separate dataset to Read those items.

Excellent!! That was the issue. The dataset was set to Read&Write mode, and as soon as I changed it to Read only, it solved the problem. The elements are not a dynamic page, just a regular static page. Thank you so much for your help. As always, quick and proper solution :slight_smile:

1 Like