diff --git a/app/src/View/Helper/FieldHelper.php b/app/src/View/Helper/FieldHelper.php index e965e048d..f7f14fa0c 100644 --- a/app/src/View/Helper/FieldHelper.php +++ b/app/src/View/Helper/FieldHelper.php @@ -99,10 +99,17 @@ public function control(string $fieldName, // Specify a class on the
  • form control wrapper $liClass = $cssClass; + + // Get the field type from the map of fields (e.g. 'boolean', 'string', 'timestamp') + $fieldMap = $this->getView()->get('vv_field_types'); + $fieldType = $fieldMap[$fieldName]; // Collect any supplemental markup and/or JavaScript to pass along for field construction. // Suppliment is an array: supplement['beforeField' => 'string', 'afterField' => 'string']. $fieldSupplement = !empty($config['supplement']) ? $config['supplement'] : []; + + // For special fields that should not include