diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index 7d7c73aa6a9482e42240b2581ea78f44d0157e68..7ac0995281e83f5bfb91510236141843eddf000d 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -948,6 +948,13 @@ class SelectionField extends FormField { } return $this->_choices; } + + function export($value) { + if ($value && is_numeric($value) + && ($item = DynamicListItem::lookup($value))) + return $item->toString(); + return $value; + } } class SelectionWidget extends ChoicesWidget {