@alcampopiano @jshaffstall thank you both for replying!
Okay I tried to put together what you guys suggested, but it is just returning True every time, even if the user has not been assigned to any restaurants. (Card_2 is always visible, Card_1 is always hidden)
Server Code:
@anvil.server.callable
def check_user():
current_user = anvil.users.get_user()
if app_tables.restaurants.get(owner=current_user):
hide_card_1=True
else:
hide_card_1=False
Form 1 Code (in the init function):
if anvil.server.call('check_user') is True:
self.card_1.visible = True
self.card_2.visible = False
else:
self.card_1.visible = False
self.card_2.visible = True