mpg_prepress Posted May 23, 2014 Share Posted May 23, 2014 Hey all, I am trying to come up with a JS rule, where a line break will be created after the first comma in a data field but only after the first comma and not after subsequent commas. I am not a JS wizard by any means, so I am not sure how to go about this. Any help would be greatly appreciated; thanks in advance! Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted May 27, 2014 Share Posted May 27, 2014 return Field("YourFieldName").replace(",", ",<br>"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.