diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php
index 32df6570adab84fca394d7ed7bf476a5e7b884ae..15968a26dd360d505ee55bc62799454c620474bb 100644
--- a/include/class.dynamic_forms.php
+++ b/include/class.dynamic_forms.php
@@ -999,6 +999,7 @@ class DynamicFormEntry extends VerySimpleModel {
             // entry-id if necessary
             $a->set('entry_id', $this->get('id'));
             try {
+                $field->setForm($this);
                 $val = $field->to_database($field->getClean());
             }
             catch (FieldUnchanged $e) {