How can I connect between two Anvil apps?

What I’m trying to do:
I took the login demo from Anvil, and I would like to connect it to my other Anvil app that will appear immediately after the user login.
How can I do that?

There’s an option in the Users service:

Note that login status is shared between apps that share the same Users table. So after you add the Users service to an app, you have to remove the existing Users table, then add the Users table from another app.

But how can I call the other Anvil file?

You mean to open one app from another app? You open the URL for the other app, either through a link component or Javascript.

You’ll have to give a lot more context for your use case if you want any more advice. I’m not even convinced that you even need two apps, if one of them is only used for login. That’s easily handled from within a single app.

Single app seems better,
However still how can you create two screens?
One for the login, and the other for the rest of the app

Anvil’s IDE lets you create as many Forms as you want.

At this point, I’d strongly recommend one of the Getting Started tutorials or videos, just so you can see some of the basic parts, and how they fit together.

1 Like

I strongly agree with Phil, tutorials will answer those questions. Start with Anvil | Build a Simple Feedback Form and then go to Anvil | Data Grids: Displaying Data In Tables. Finish with Anvil | Multi-User Applications with Anvil and you’ll have an awful lot of the Anvil learning curve completed.