Search code examples
lotus-noteslotus-domino

Entering multiple values using @setfield


I have a text field/editable, allow multiple values, semicolon for both Multi-Value Options property, in which I want to save current user when they click a button. On the button I have the following code:

 @SetField("fieldA"; @Name([CN];@UserName));

The previous value always gets overwritten by the new. What would be the solution to have multiple values stored in?


Solution

  • @SetField("fieldA"; fieldA:@Name([CN];@UserName));
    

    That will append the current user's name to the item.