
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2019 01:18 PM
Hi,
Does anyone know how to add a new line in a record producer?
I have this code
current.description = (('what is the need?') + (' ') + producer.What_is_it_that_you_need)
+ (' ') + (' ') +
(('when do you need it?') + (' ') + producer.When_do_you_need_it);
I would like to add a new line from (('when do you need it?') + (' ') + producer.When_do_you_need_it);
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2019 03:30 PM
Hi Riaz,
Use the "\n" escape character to insert a new line in your text string:
current.description = 'what is the need?' + '\n' + producer.What_is_it_that_you_need + '\n\n' + 'when do you need it?' + '\n' + producer.When_do_you_need_it;
if written more clearly:
current.description = 'what is the need?\n';
current.description += producer.what_is_it_that_you_need + '\n\n';
current.description += 'when do you need it?\n';
current.description += producer.when_do_you_need_it;
Give it a try. Hope this helps!
Cheers,
Manish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2019 03:30 PM
Hi Riaz,
Use the "\n" escape character to insert a new line in your text string:
current.description = 'what is the need?' + '\n' + producer.What_is_it_that_you_need + '\n\n' + 'when do you need it?' + '\n' + producer.When_do_you_need_it;
if written more clearly:
current.description = 'what is the need?\n';
current.description += producer.what_is_it_that_you_need + '\n\n';
current.description += 'when do you need it?\n';
current.description += producer.when_do_you_need_it;
Give it a try. Hope this helps!
Cheers,
Manish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2019 01:04 AM
Perfect, that you that worked. And also many many thanks for tidying up the code.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2019 03:40 AM
Glad that it helped 🙂
Cheers,
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 01:05 AM
Hi @Manish Vinayak1 and @Allen Andreas
I tried both the above ways but the output is not getting printed in the next line.
This is my output and my description field is an HTML type as well .
Could you please provide your inputs to resolve this issue.