diff --git a/site/plugins/form/app/Controllers/FormController.php b/site/plugins/form/app/Controllers/FormController.php index f80c9302..1140b04e 100644 --- a/site/plugins/form/app/Controllers/FormController.php +++ b/site/plugins/form/app/Controllers/FormController.php @@ -543,8 +543,9 @@ class FormController extends Controller $id = isset($properties['id']) ? $properties['id'] : $field_id; $name = isset($properties['name']) ? $properties['name'] : $field_name; $class = isset($properties['class']) ? $properties['class'] : $this->field_class; + $value = isset($properties['value']) ? $properties['value'] : $field_value; - return $this->flextype['view']->fetch('plugins/form/templates/fields/text/field.html', ['title' => $title, 'size' => $size, 'name' => $name, 'id' => $id, 'class' => $class, 'help' => $help]); + return $this->flextype['view']->fetch('plugins/form/templates/fields/text/field.html', ['title' => $title, 'size' => $size, 'name' => $name, 'id' => $id, 'class' => $class, 'help' => $help, 'value' => $value]); } /** diff --git a/site/plugins/form/templates/fields/text/field.html b/site/plugins/form/templates/fields/text/field.html index aa91bc05..6dd474b6 100644 --- a/site/plugins/form/templates/fields/text/field.html +++ b/site/plugins/form/templates/fields/text/field.html @@ -1,6 +1,6 @@
- + {% if help %} {{ help }} {% endif %}