@try67 I have tried that but the problem is dealing with 500-800 list items (500-800 text box) and its formula's make the report too slow to load.
Multi line text box gives me the result I want except the little issue everything is ok with the use of match function , .map function , join function..
anyway thanks for your support on the first question.
Try this, then, as the custom Keystroke script:
if (AFMergeChange(event).split("\r").length!=5) {
event.rc = false;
}
This will allow the user to only have 5 lines in the field. Of course, you have to make sure there are already that many lines when they get it, or they won't be able to edit it at all. Also, after you apply the code it's likely it will "disappear". This is a bug of Acrobat, but it should still work, despite not being visible.