Can you use html in Value fields


I was told not to use HTML in the “Value” field of “Option” or a “Product” field. Is this true?

LABEL (field field) = [2] (1 inc.) - $20
VALUE (field field) = [2] (1 inc.) - $20
PRICE (field field) = $20.00

I have used it and seems like its working fine. I was told to remove them by some IT guy who knew about how Gravityforms work…

HTML and special characters can be used in the choice text, but should not be used in the choice value. This is mentioned on the documentation pages of the choice-based field types:

The submitted value is sanitized, which can remove some HTML and special characters, resulting in it not matching the values of the configured choices. This can result in a validation error.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.