Reputation: 159
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?
Upvotes: 1
Views: 1175
Reputation: 720
You might want to look into using the @Unique function. Remember there's a 32K limit of summary field data, so don't let this list grow indefinitely. See @Subset function. Also, bear in mind that the user can save the document without clicking your button, so a Querysave event might be a better place to do this.
Upvotes: 1
Reputation: 22266
@SetField("fieldA"; fieldA:@Name([CN];@UserName));
That will append the current user's name to the item.
Upvotes: 3