tobimori / kirby-dreamform

✨ DreamForm is an opiniated form builder plugin for Kirby CMS that makes forms work like magic
https://plugins.andkindness.com/dreamform
45 stars 7 forks source link

Numbers as values are not read correctly #62

Closed sciloqi closed 5 months ago

sciloqi commented 5 months ago

First of all, great plugin!

I made a set of radio buttons for a 5-star rating system: Value for the first option is "1", label is "⭐️", and so on...

Answers (values) are correct stored in the content files, but not displayed in the structure field in the panel as answers (empty column).

The other way round, value is "⭐️" and label is "1", it works.

Bildschirmfoto 2024-06-12 um 12 53 19

Bildschirmfoto 2024-06-12 um 12 55 03
tobimori commented 5 months ago

When clicking on an answer, they are correctly shown, right?

tobimori commented 5 months ago

I assume Kirby has trouble parsing the answer as raw value

sciloqi commented 5 months ago

When clicking on an answer, they are correctly shown, right?

no, they are not shown... none of the options is marked

Bildschirmfoto 2024-06-12 um 14 33 51

tobimori commented 5 months ago

I think I managed to fix it, can you try applying the change from the commit manually?

sciloqi commented 5 months ago

Yes, works as expected!

The value "1" is shown in the structure field, and the right option is marked!