Button Appearance when Data View is empty

2
I have an embedded data view of an associated entity within my form. I'd like the buttons to not appear when the data view is empty, is there an easy way to achieve this? Currently, I'm using an empty data view message and styling it so that it covers my buttons but I'd like a better solution.
asked
2 answers
2

I've had a similar issue with some frequency. Best workaround I've been able to find is to add a boolean to the entity for your dataview, and set conditional visibility on your buttons to only show when this boolean is not 'empty'. (or use another existing boolean/enum that is never empty for the dataview entity)

answered
0

Google maps widget also does not like sitting in a dataview which has no object. Weird constructor error in the browser console. Dataview should not do anything unless it has an object. I used existing status enum, which is never empty in a real object. This should not be necessary.

answered