I have a list in Sharepoint 2010 with a choice column. User can enter own text value, not to choose from existing values.
So how to write text string in item field (type Choice) if this string is different from the existing values? Programmatically?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can just set it as a string. That’s how the values of choice fields are stored internally.
Now, if it were a lookup field, or a user field, they’re a little different (You’d have to decoded the string using a SPFieldLookupValue or SPFieldUserValue object, for example), but Choice is easy enough.