diff --git a/include/class.forms.php b/include/class.forms.php
index 582df3bf7b682ee3b2028a5c2187a1ed0a9a3f41..48a9e71c9086b671ba5bc589fbd820b870922fa2 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -1621,6 +1621,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;