Container view dependent on data

Hi Everyone,

I'm new to Retool, so I apologize if this is obvious.

I have a List View displaying items from a GraphQL query. Inside I have placed a Container. The Container has 2 different views, and I want it to show the correct view depending on a boolean value in the data for that item. Where do I put the code to determine which view to use?


Hi @CarlaK Thanks for reaching out! Would a conditional in the default value work for you?

1 Like

That works perfectly, thank you :slight_smile: