Commit 1716f183 by Owen Ryan Ang

Not display fields tagged as hidden

parent d33bb025
......@@ -475,8 +475,14 @@ const deconstruct = (section, container, classAttribute) => {
for (const key in section) {
const {
fieldLabel
fieldLabel, hidden
} = section[key]
// Skip hidden fields
if (hidden && hidden.toLowerCase() === "y") {
continue;
}
const validation = getValidation(key, schema)
const newField = document.createElement('div') // will contain input field and label
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment