Access Enumeration field selected value from admin

Topics: Administration, Core, Customizing Orchard, General, Installing Orchard, Troubleshooting, Writing modules
Feb 11 at 2:36 PM
Edited Feb 11 at 2:37 PM
Hi,

I am trying to access value from enumeration field since adminstrator in widget. The idea is get the value in editor method from driver in widget module when submit form. If i debug the code, i can see the value selected in mypart (Fields.EnumerationField) but i don't know how access to that value. I hope your support soon. Thanks
Feb 14 at 3:18 PM
When you're writing the code in Visual Studio you don't get the intellisense because the objects are dynamic and composed at run-time.

I wrote a little quick tip on my blog about getting at the fields from the code:
Hopefully that will point you in the right direction? If you're having trouble seeing the bigger picture then I actually wrote an introductory module on the official docs which covers all of the details of making a widget: