I have a checkbox field that is populate with user choices. I need to get the values they have selected from within a plugin. Here is my attempt. Not working.
$entry = craft()->entries->getEntryById($entryId, $localeId = null);
foreach ($entry->storyCategories->options as $option) {
var_dump($option);
}
Can somebody please show me how to get these selected values?