GPtrArray *ar_elements;
guint l;
- ar_elements = zak_form_element_array_get_elements (ZAK_FORM_ELEMENT_ARRAY (element));
+ ar_elements = zak_form_element_array_get_elements (ZAK_FORM_ELEMENT (element));
for (l = 0; l < ar_elements->len; l++)
{
_zak_form_cgi_form_bind (priv, (ZakFormCgiFormElement *)g_ptr_array_index (ar_elements, l));
str = g_string_new ("<div class=\"form-group");
+ if (!zak_form_element_get_visible (ZAK_FORM_ELEMENT (element)))
+ {
+ g_string_append (str, " hidden");
+ }
+
messages = zak_form_element_get_messages (ZAK_FORM_ELEMENT (element));
if (messages != NULL
&& messages->len > 0)