I have two elements in the FeatureForm widget and I want to hide the second as long the first is blank. Once something is input in the first element then the second should appear.
This is similar to the Smart Editor functionality in WAB.
I tried this:
elements: [{
// Autocasts to new GroupElement
type: "group",
label: "Testing",
elements: [{ // Autocasts to new FieldElement
type: "field",
fieldName: "first",
label: "First"
},
{
type: "field",
fieldName: "second",
label: "Second",
visibilityExpression: "IIF(!IsEmpty($feature.first))"
}
]
},
@JoelBennett ?