Hi Everyone
I am trying to send the Word Doc Template module dynamic Key/Value pairs. This is because the keys will not always be the same.
I am currently sending these key/values through as JSON string and using the JSON parser to parse it neatly.
So for starters, this is what the online help docs and YoutTube videos show:
Under the Values section, the simple method is to choose Value as the Value type, then enter your Key (in this case, Company Name), and then specify where it’s coming from. Easy! That works fine.
BUT NOW…
What if I send the info in as {“Company Name”: “My New Company”}?
I have gone ahead and clicked on the Map toggle so I can enter this manually like so:
You can also do the same selecting the other option under Data source, which is Raw data collection, like this:
As you can see, my JSON has parsed nicely and is usable as an array.
However, when the Word Document generates, it hasn’t substituted in my values.
And just to confirm, the variables are exactly the same in my Word Doc as I have them here.
eg: Company Name appears as {{Company Name}} and Invoice Number appears as {{Invoice Number}} in my Word Doc.
To clarify, this works fine when using default form version, but as soon as you click on Map and try insert the raw JSON, it doesn’t pull through.
Any ideas?
Cheers