Please note that the forum isn't realy used anymore.

If you have questions, want support or just simply want to talk to us you can find us on slack.

 

Strange behavior with ' in formbuilder

Hi,

I created a form with radiobuttons. These radiobuttons have the following values:

  • 's morgens
  • 's middags
  • 's avonds

But if the the form is posted I'm unable to get the value. But I noticed something strange. Fork converts the ' to html entities, which is fine by me. But when the form is posted the html entity is converted to ' again. This means that the radiobutton element is unable to check if the value is correct because "'s middags == 's middags" is false.

Is anyone familiar with this problem are is there a solution available, besides changing "'s morgens" into "s morgens"

Thanks!

Hmm strange. Maybe set a value like "morning", "day", "evening" for the radiobutton value and use the 's ochtends as your radiobutton name. In the frontend this will be a label I think?

This error is probably caused by Spoon Library? Fork CMS is slowly migrating to the more powerful Twig template engine...

No this is not caused by the Spoon Library. Special characters are converted into html entities, which is fine by me. But this is also the problem.

This morning, after a good night sleep I found the solution. And created a pull request: https://github.com/forkcms/forkcms/pull/1016

Comment

The forum is deprecated in favor of our Slack channel, which provides real-time support for your issues.

Join us on Slack here: https://fork-cms.herokuapp.com/