Was this problem resolved? I'm trying to do the exact same task. I have a custom field, Gender, and I want to get all the possible values then bind that to a control.
I send a support ticket and that was the answer:
"CourseType" is the full name of the type which the Location choice field belongs to. You can take it from the code reference of you type.
I hope this helps you!
We're using Sitefinity 5.4.4000.0 SE and the proposed solution did not yield a comma-delimited list of choices as implied in this example, but rather, we got what appears to be choices rendered in XML. In our implementation, we have key=value pairs for all choices.
<choice text="Choice1" value="one"></choice>
<choice text="Choice2" value="two"></choice>
<choice text="Choice3" value="three"></choice>
Here's the solution I created to extract the actual text and value pairs into a simple NameValueCollection:var moduleBuilderManager = ModuleBuilderManager.GetManager();
NameValueCollection choices = new NameValueCollection();
XmlDocument xml = new XmlDocument();
foreach (System.Xml.XmlElement choice in xml.SelectNodes("/choices/choice"))