I am trying to add in multiple items from a form into a formatted docx file. The document is created as expected but now I need to be able to separate user responses under the same field name in the xml:
For example let's say the XML is generated as follows:
<test name = 'name' title = 'The title' current_state = 'user added state 1 BREAKHERE user added state 2' other = 'other stuff'/>
I can add something into BREAKHERE easily enough since the entire field is made using a foreach() and concat(). I know from looking at discussions that I need to try and insert a <w:br/> tag somehow, but I can't inject that into the string without getting an error from the "DOCX From Dynamic Template" component saying "The value of attribute "current_state" associated with an element type "test" must not contain the '<' character.".
Discussion posts and replies are publicly visible
char(10) ended up working to insert breaks into the XML and the smart service knew how to process them during conversion. When trying char(10) originally all char(10)'s were removed through a stripping function that was being used, and they had to be added back in after the fact.