FormIt Integration Options: Make Form Submissions Easily Accessible to Client Only

Awesome. Great to hear we’re on the right tracks. I’ll post a snippet you can use to decode the JSON later on today when I’ve got some time.

If you want to give the snippet a shot yourself have a look at https://docs.modx.com/xpdo/2.x/class-reference/xpdoobject/field-accessors/fromjson

Basically you want the snippet to read the JSON of the [[+value]] placeholder (either call the snippet directly Or you could write this as an output modifier), then foreach loop through the object to output a string as readable data. I can’t quite remember how to format the string correctly as any newline will trigger an error in your tsv file. I’ll work through an idea and post

1 Like