solspace / craft-freeform

Freeform for Craft: The most reliable form builder that's ready for wherever your project takes you.
https://docs.solspace.com/craft/freeform/v5/
Other
47 stars 59 forks source link

Freeform classes not rendering properly #1274

Closed HAWilliams01 closed 4 months ago

HAWilliams01 commented 4 months ago

The freeform-row class has an extra set of quotes on it. It is being rendered on the front end as class=""freeform-row"" instead of class="freeform-row".

I'm using version Freeform 5.1.19.1 and {{ form.render }} to render the form in the template. Craft version 4.9.2

I have a different site using Freeform 5.1.16.1 and this is not an issue. Craft version 4.9.0

kjmartens commented 4 months ago

Hi @HAWilliams01,

Freeform 5.1.18.1 was released to address this issue, specifically with sample formatting templates. That said, if you have any custom formatting templates, you'll need to add the |raw Twig filter to any instance of form.attributes.row, form.attributes.success and form.attributes.errors:

E.g.:

- form.attributes.row
+ form.attributes.row|raw

We're not sure why this started happening very recently (with no changes on our end), but we suspect that something might have changed in a recent version of Craft or Twig, etc.