Hello, here’s my problem. I have a cms collection for the reviews which is called “avis”. And a collection for the different spectacles. When I submit the form to add a review for a specific spectacle and on its page, it adds it on the spectacle cms template. So the review is visible for every spectacle.
And I want to display the review ONLY on the spectacle page where I submit it. And I can’t find how to do it… Maybe with an ID or something. I don’t know
Can you please help me with this ?
Thanks a lot for your answer. Is the custom code essential (I’m not developper, just some knowledges ) ? Because I saw that with my input I could select the slug of my spectacle from my collection with the ID :
And I’m not sure on how to use that slug as the reference item in creating my new review in logic. If you could be a little bit more precise that would be nice. Thanks
You need to set the value of the Input to your slug, and Webflow does not have Input value data-binding. However you can use this lib to set the value. Just add the lib and then on your input field, you’d add a custom attribute of x-value data-bound to the CMS slug.
Like I said, I’m not even certain if current Logic has sorted this out. You’ll either just set it, or you’ll need to add a find setup to lookup that slug and get the ID. Try both.
Then I’m stuck… I thought about use a filter on the cms item review in its settings, for example filter if the review item spectacle-id value = actual slug. But I doesn’t seem to be possible.
It feels like I’m close to find the solution but… no