From 085fc67ff880167d9bcd2f32ecaab88973f098bc Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 24 Oct 2019 22:26:14 +0300 Subject: [PATCH] feat(core): add ability to hide title for hidden fields #240 --- flextype/core/Forms.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/flextype/core/Forms.php b/flextype/core/Forms.php index 19d5ae30..6f6235f1 100644 --- a/flextype/core/Forms.php +++ b/flextype/core/Forms.php @@ -176,9 +176,13 @@ class Forms $form_label = ''; } - $form .= '
'; - $form .= $form_label . $form_element; - $form .= '
'; + if ($property['type'] == 'hidden') { + $form .= $form_element; + } else { + $form .= '
'; + $form .= $form_label . $form_element; + $form .= '
'; + } } $form .= ''; $form .= '';