Clint Crowe
 · tech for farmers built by farmers

Using Conditional Builder to Show Content

Ok, I have another one. I am hoping this are things that will help others!

I have a page where i have a list view of items. the user has to put the items in the this page through a catalog though, so if they have not put anything into the table view for the page the first time they go to it it will be empty. I want to display a message on that page that tells them they need to go add stuff to the page if its empty. 

I setup a conditional builder to do this. I have a stack on the page and i have a condition set for two containers under that stack. the initial container will show if there is something in the list view, otherwise, show the other container with the message. my thought was, set the condition that if a userID in the view table matches the auth user on the page then show the container that has the items. if not show the other container. the list view is a list with all users and their items so if the user has not added any items then their userID would not be in the list view.

But alas, when I have a user that has not setup any items, it just shows a blank page. No container with the info to go add stuff...

3
3 replies