Prevent non-mandatory entity attributes from displaying

Prevent non-mandatory entity attributes from displaying

  

Hi guys, I am displaying text and images (external URL) on a detail screen using entity attributes and input parameters on a mobile app. However, not all of the entity attributes are mandatory and when they aren't, the screen appears as the image attached. How do I resolve this and stop non-mandatory entity attributes from displaying when there is no data input? 

Solution

Hi Louie,

One way to do this would be to wrap the widgets that display a particular attribute in a container and then, in the container's "Visible" property, use an expression that would look like this:

GetEntityById.List.Current.Entity.AttributeName <> ""

This way, if the attribute is empty, the respective widgets will not be displayed.

Solution

Hi, 

That worked, thank you very much.