diff --git a/include/class.forms.php b/include/class.forms.php
index f9c5d2258cbb612e740c42ca667748972f954710..ae165e085ceeeb8331ca2ae73c3211a608b3f27e 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -1795,6 +1795,11 @@ class ChoiceField extends FormField {
         return (string) $value;
     }
 
+    function asVar($value, $id=false) {
+        $value = $this->to_php($value);
+        return $this->toString($this->getChoice($value));
+    }
+
     function whatChanged($before, $after) {
         $B = (array) $before;
         $A = (array) $after;