Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library


Thread Tools Search this Thread Display Modes
Old October 26th, 2015, 09:20 AM
sandig@customprinters.com sandig@customprinters.com is offline
Regular Contributor
Join Date: Feb 2010
Posts: 62
Default Re: How to read a multi-line text box field into an array

I am looking to do similar task: split a multi-line text field into an array based on the line break as the delimiter. I have tried:
var data = Field("BenefitsList");
var eachLine = data.split(/\n/g);
and other regular expressions to no avail. Does anyone know how to split on a line break in a multi-line text field?
Reply With Quote

array, multi-line text box, push

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 05:57 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.