Pulling a checkbox data from a form to a CMS item

When I submit the form, I want the evaluation to display on my page. With the name, email, evaluation, star rating from the form.

Until there no problem, I created the collection for the evaluations, the flow which is going to add a CMS item.

Here’s the problem : I need a custom field in my evaluation collection for the checkbox / star rating because each CMS item should display the star rating selected. But I have no idea how despite my research.

https://preview.webflow.com/preview/les3coups?utm_medium=preview_link&utm_source=designer&utm_content=les3coups&preview=d4e0be93ec34d6cf62d472278e4761e7&pageId=64ce83acb8a6b3413b9b2468&itemId=64d132a1e938619c787d6885&workflow=preview

Hi Jérémy, this might help.
For star rating 0 to 5 stars, I usually create a Number field in the CMS.

Then, I use that with this element-

This way it is easy to simply bind the wfu-rating attribute to the CMS field value.
It also supports half-star ratings if you want.

Thank you but is there no easier way ? I just need to link the value of the checkbox to a collection / CMS.

In this video he can link directly the star rate value with the collection, as you can see in his Logic / Flow. But how did he manage to do that ? I litteraly want to do the same thing :exploding_head:

Nice video by Ahmed, I scanned through it and I think he missed a step.
What you’re seeing in his logic flow is a binding to a CMS Option field.

You can bind your star rating to a text field just as easily, but in his case he created an option field which looks different. If you do that-

Create an option field in your CMS collection.
Name it Star Rating.
Add six values = None, 1, 2, 3, 4, 5

When you bind it in Logic, the radio button group will be treated as a valid source for the option, so bind it and then set the default fallback option to None.

Ok nice it works ! Thanks a lot :grin:

1 Like