Formatting text in Comments field via Forms API


Hi -

We’re using the Forms API to map data from various forms on our website, to corresponding fields within HubSpot Forms we have set up.

In some cases we are concatenating a number of fields in our web form and passing these to a “Comment” textarea field on a HubSpot form. Ideally, we would like to include line breaks within the data we pass into the textarea field so that content is more readable. However, we’ve tried passing new line formating (\n) and HTML (
), but neither is rendering when we view the form data in HubSpot. Is there a way to turn on such formatting in the output when viewing forms?