Will that on save update the backend document to that also? I have created but not tested the below code to attempt this also
/*
var nameslist = sendto.iterator()
while (nameslist.hasNext()) {
var longname:NotesName = session.createName(nameslist.next())
var Canonname = longname.getCanonical()
}
document1.replaceItemValue("resp",Canonname)
document1.save()
*/