                 (cond enum (render-enum data)
                       (= type "boolean") (render-boolean data)
                       (= (:datatype renderHint) "freetext") (render-freetext data)
-                      (= (:typeahead prop) "ontology") (render-typeahead data)
+                      (= (:typeahead prop) "ontology") (render-ontology-typeahead data)
+                      (= (:typeahead prop) "populate") (render-populate-typeahead data)
                       :else (render-textfield data))])))
          (map keyword questions))]))})

         (style/create-link {:text "Clear Selection"
                             :onClick #(apply swap! state update :attributes dissoc
                                              (library-utils/get-related-id+label-props library-schema property))})]]))])

(defn- render-textfield [{:keys [colorize datatype prop value-nullsafe update-property]}]
  (style/create-text-field {:style (colorize {:width "100%"})

                           :onChange update-property
                           :rows 3}))

(defn- render-ontology-typeahead [{:keys [prop colorize value-nullsafe update-property state property library-schema]}]
  [:div {:style {:marginBottom "0.75em"}}
   [comps/Typeahead {:field-attributes {:placeholder (:inputHint prop)
                                        :style (colorize {:width "100%" :marginBottom "0px"})
