               )
               (sort 
                 #(compare ( :num ( nth %1 1)) ( :num( nth %2 1))) 
-              (into[] (:fields ((keyword (:leavecode (:leaveapp @app-state))) (:leavetypes @app-state)) )  )   
-)
+                (filter (fn [x] ( not= (keyword (nth x 0)) :leavecode  )         )
+                  (into[] (:fields ((keyword (:leavecode (:leaveapp @app-state))) (:leavetypes @app-state)) )  )   
+                )
+                
+              )
 
 
 

                (dom/div {:className "col-sm-10"}
                  (cond 
                    (= (:fieldtype (nth text 1)  )  0)
                      (dom/input {:type "text" :id (name (first text) ) :onChange #(handle-change %)})
                    (= (:fieldtype (nth text 1)  )  1)
                      (dom/input {:type "text" :id (name (first text) ) :oninput #(handle-change %)})
                    (= (:fieldtype (nth text 1)  )  2)


(defn fields-to-map [fielddef]
  (let [
      newdata {(keyword (get fielddef "fieldcode")){
        :name (get fielddef "name") :fieldtype (get fielddef "fieldtype")
        :required (get fielddef "required") :num @fieldnum :timeformat (get fielddef "timeformat")
        :hide (get fielddef "hide") :values (get fielddef "values")} }
    ]
    (swap! fieldnum inc)
    newdata
