I couldn't seem to write the correct js code for this. so the only thing i came with is to aggregate these lines by sequence_no. I created a set of numbers and a set for fields for the notes. using a lookup rule, if the lookup rule sees sequence_no 1-10, it'll aggregate all of the notes in sequence_no from 1-10.
So my original inquiry was to see if there's a js method to aggregate these notes into 1 comment in sequence_no ASC without having to create so many fields?
the example below has about 50 lines for 1 comment. to get it to flow into 1 paragraph, i have to create 50 fields and aggregate them in sequential order. i have a rule that if there's sequence 1, then fill notes 1, if there's squence_no 2, then it fills notes 2.. etc... these boxes are hidden. in the completed comment box (visible/not hidden), i have a rule that aggregate all of the lines in sequential order to make it flow like 1 full paragraph.
hope that make sense.
This is what the comment looks like in the application. we want the whole comment to use a lookup rule and transfer into laserfiche forms (in a multiple-line field):

same completed comment, Here's how it looks like using ssms:
