diff --git a/application/backend/src/main/java/ai/typerefinery/websight/models/components/forms/Field.java b/application/backend/src/main/java/ai/typerefinery/websight/models/components/forms/Field.java index f09f08567..d7c8c3eb0 100644 --- a/application/backend/src/main/java/ai/typerefinery/websight/models/components/forms/Field.java +++ b/application/backend/src/main/java/ai/typerefinery/websight/models/components/forms/Field.java @@ -50,9 +50,16 @@ public class Field extends BaseFormComponent { @Getter protected String labelId = DEFAULT_ID; + @Getter + protected boolean labelHidden = true; //hidden untill we find it as a child + @Getter protected String fieldId = DEFAULT_ID; + @Getter + protected boolean fieldHidden = true; //hidden untill we find it as a child + + // authored flex toggle @Inject @Getter @@ -90,9 +97,11 @@ protected void init() { if (name.equals("label")) { String id = child.getValueMap().get("id", ""); this.labelId = this.resource.getName() + (StringUtils.isNotEmpty(id) ? "-" + id : ""); + this.labelHidden = false; } else if (name.equals("field")) { String id = child.getValueMap().get("id", ""); this.fieldId = this.resource.getName() + (StringUtils.isNotEmpty(id) ? "-" + id : ""); + this.fieldHidden = false; } }); } diff --git a/application/backend/src/main/resources/apps/typerefinery/components/forms/field/variant.html b/application/backend/src/main/resources/apps/typerefinery/components/forms/field/variant.html index cbaa329e2..90f44203a 100644 --- a/application/backend/src/main/resources/apps/typerefinery/components/forms/field/variant.html +++ b/application/backend/src/main/resources/apps/typerefinery/components/forms/field/variant.html @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/application/backend/src/main/resources/apps/typerefinery/components/stix/forms/field/variant.html b/application/backend/src/main/resources/apps/typerefinery/components/stix/forms/field/variant.html index cbaa329e2..90f44203a 100644 --- a/application/backend/src/main/resources/apps/typerefinery/components/stix/forms/field/variant.html +++ b/application/backend/src/main/resources/apps/typerefinery/components/stix/forms/field/variant.html @@ -1,6 +1,6 @@ \ No newline at end of file