Skip to content
Discussion options

You must be logged in to vote

Hi @benjaminkohl,

You will want to have a look at the Behavior Syntax part of the documentation:
https://docs.solspace.com/craft/freeform/v5/templates/formatting/#behavior-syntax

You can control the behavior of attributes by specifying a +, -, or = symbol before the attribute name and wrap it in quotes, e.g. "=class". If no behavior symbol is set, e.g. class: "my-class", the + behavior will apply.

This works for unknown attributes as well, e.g. "my-attribute": "whatever" can be written as "=my-attribute": "something else".

  • The + prefix will add the specified values to existing values for the same attribute set elsewhere.
  • The - prefix will remove the specified values from any existing va…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Comment options

You must be logged in to vote
1 reply
@kjmartens
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2169 on September 18, 2025 18:49.