Joining Two Fields And Retain Spaces

I have a situation where two fields need to be joined and separated by 17 spaces. I tried adding the two fields to a text script and have the first fields suffix the 17 spaces. However Connect drops the spaces between the two fields.

I then tried adding a second extraction step to my data mapping and make that field a javascript field. I then joined the two fields and in the data mapper or Data Model the new field shows the two fields separated by the spaces. However when adding the field to the template Connect drops the spaces again.

How can I get Connect to leave the new field alone or keep the spaces.

Regards,

S

When creating the joined field with the sapces in between in the Datamapper, I would set its type to “String” to make sure that spaces are kept. Remember that if the field is set to HTML String, the additional standard spaces will be ignored or removed.

Then in the Designer, I would right-click on the object, select Text (for Text Formatting) and set the Whitespace type to “pre”. This is equivalent to using the <pre> element in HTML. This should then keep the original spacing.

Hi Rod,

I had it set to String in the data mapper. The pre was the bit that helped. Thanks for the prompt response. Another job added to Connect.

Regards,

S