Can I set the default value of a custom list column to be a new Guid?
Posted
by Graeme
on Stack Overflow
See other posts from Stack Overflow
or by Graeme
Published on 2010-04-16T10:08:43Z
Indexed on
2010/04/16
10:13 UTC
Read the original article
Hit count: 247
sharepoint
|default-value
I tried setting the defaultvalue property of the field to Guid.NewGuid() but every item created has the same guid so I guess the Guid.NewGuid() is being stored as the default rather than being run each time.
Is the only way to achieve this to add an event handler to the list for OnAdded?
© Stack Overflow or respective owner