@ -118,7 +118,8 @@
(list
(when (and validate? (not (spec/valid? spec req-value)))
(spec-to-errmsg label spec req-value))
(hform/label id label)
(when-not (= :hidden widget)
(hform/label id label))
(renderer id def (if validate? req-value value)))))
(defn form-hash [def values]
@ -190,7 +190,7 @@
(let [def {:fields {:foo-id {:label "foo-label"
:widget :hidden}}}]
(is (= (list nil
[:label {:for "foo-id"} "foo-label"]
nil
[:input {:id "foo-id"
:type "hidden"
:name "foo-id"
@ -202,7 +202,7 @@