Can I Seperate in a Multi Line Text from a String
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 07:04 AM
good day,
I have been asked if we can separate a bunch of emails in a multi line text field that is being populated and has potential to grow.
details:
i have a table that has a field that captures emails of people in a string field. i cant cut and paste it here due to the emails addresses but it looks something like this
1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com1@hotmail.com,2@hotmailq.com
now that data from that String field is being pushed by a script include to a Service Catalog Request to a Multi line Text field and looks the same as above, Our client wants to know if their a way to make it look neater. like this
and make all additions that will happen in the future look like that as well
I tried this in the script include (this is the line where it's pushing the data) but it did not work
hrCEINFO.poc_distro_list = hrCERecord.poc_distro.toString() + "\n" + hrCERecord.poc_distro.toString();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 07:20 AM
Hi,
You can use it like below:
var emailArr= hrCERecord.poc_distro.toString().split(',');
var newList = emailArr.join('\n');
hrCEINFO.poc_distro_list = newList;
Thanks
Anil Lande