Hey guys,
I have a form field (hidden) that is being populated with the formatted contents of a cookie using the gform_pre_submission_filter.
It has a collection of items, each with a subset of configurations. The issue I'm having is that I can't figure out how to keep any sort of line breaks in the data.
I've tried html, it's stripped out. I've tried \n - the backslash is pulled and there's just n's listed in the data.
Is there any way to either : insert HTML or newline characters that are preserved in the entries / emails? I assume that it's a security issue blocking these, but since it's being completely build in PHP on the back end, can I at least disable the stripslashes / remove html that's being triggered on this field?
EDIT: I've solved this myself, due to a bit of forgotten php weirdness.
'\n' is not "\n", as single quotes don't parse contents. Using doubles worked fine.