I want to set true or false value to sharepoint checkbox field with C# Server object model.

This is my code:

//SODigitalNationalMuseumFund(ChoiceField -> Yes/No)
addItem["SODigitalNationalMuseumFund"] = Convert.ToString(dRow[9]).Trim();

How to do this? Thank you previously!

  • 1
    try setting "1" for true and "0" for false Commented Dec 12, 2016 at 13:44

1 Answer 1


To set a value to a choice field , this value should be in the range of choice column existing values so , Try this

string myChoice="True";

item["Choice Column"] = list.Fields["Choice Column"].GetFieldValue(myChoice);

Where GetFieldValue() matches an existing value in the choice column.

For more details check Programmatically Setting the Value of a SharePoint Choice Column

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.