I have a cascading dropdown (multi) that selects user names into a field. The names from this field are then copied into a single line text field to control who can edit the document by custom js. When the names are saved into the single line text field it adds ‘;\n’ at he end of each name.

Is there any Java function function that can be used to remove the ‘;\n’ when adding to the single line text field?