diff --git a/forms/FormField.php b/forms/FormField.php index 7a5920129..6f10c5df7 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -211,6 +211,15 @@ class FormField extends ViewableData { $this->form = $form; } + /** + * Get the currently used form. + * + * @return Form + */ + function getForm() { + return $this->form; + } + /** * Sets the error message to be displayed on the form field * Set by php validation of the form