Multiple choice form control option values

Gihan Perera asked on July 10, 2015 06:58

Hi,

I want get all the option values on multiple choice form controller through the api. Its on one of my document type field.

Thanks

Correct Answer

Gihan Perera answered on July 10, 2015 07:07

Hi guys,

i found one of code example.

DataClassInfo classInfo = DataClassInfoProvider.GetDataClass("cms.news");
FormInfo formInfo = new FormInfo(classInfo.ClassFormDefinition);
FormFieldInfo ffi = formInfo.GetFormField("options");
Hashtable options = ffi.Settings;
string valuesWinTextXML = options["options"].ToString();
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.