Logo
Search
Info
Content
Category Navigation
  • Build it with Tim

  • How do I build a booking calendar?

  • How do I build a time tracking module?

  • How do I build a payment system with Stripe?

  • How do I restrict pages from the Live App?

  • How do I build a complex User creation workflow?

  • How do I loop through connected records with Make?

  • How do I find similar records?

  • How do I use OpenAI with my app?

  • How do I build a "Like" system?

  • How do I use iOS shortcuts to send data to my app?

  • How do I use CSS classes with Display Rules?

  • How do I send real-time notifications in my app?

  • How do I save values to Local Storage?

  • How do I validate and compare connected record values?

  • How do I use the barcode scanner?

  • How do I build a proposal or quote generator?

  • How do I embed video calls in Tadabase?

  • How do I use Row Visibility?

  • How do I build a workflow that allows for User Signup and automatic Company creation?

  • How do I build a Company Portal / ERP?

  • How do I build a Pricing Calculator?

  • How to send email notifications from your Tadabase application

  • How do I build a multiple choice test?

  • How do I create dynamic Google Docs from my app data?

  • How do I send User Activation Links?

  • Building Cascading Connections

  • How do I iterate through a Date Range?

  • Generate Tweets and automate your Twitter account using Open AI

  • Custom Image Galleries

  • Password Protected Editing

  • Messages & Replies

  • Cascading Deletes

  • Multi-Tenanted Family Planner

  • Supercharging Form Components with Display Rules and CSS

  • Family Planner (pt. 2) Custom Components

  • Building a Rental Marketplace App

  • Converting date/time to the End-User's time zone

  • How do I hide fields based on User preferences?

  • Tadabase powered moving & packing app

  • BarkTag - Cloning an app found on Instagram with Tadabase

  • External equation processing with Sparklite.io

  • 8 ways to filter data in your Tadabase app

  • Building a Sales Funnel & Pipeline

  • Building an Event Registration app

  • Building your own in-app discount codes for Stripe payments

  • Automate notification emails with Tadabase

  • Build filtered presets to save as custom views

  • Dynamic Status Indicators

  • Mastering Data Table Structure

  • Building Custom Components with ChatGPT

  • Redirect Rules & User Journeys

  • Turning Spreadsheets into Structured Databases with Tadabase

  • Secure Your App with IP Security

  • API Token Authorization and Refreshing the Token in Tadabase

  • Why Speed Of Development Matters

  • Dive Deep into Tadabase's Field Settings

Categories
Build it with Tim
How do I restrict page...

How do I restrict pages from the Live App?

Hey there, Tadabase users! Welcome back to Build It with Tim, where we bring your app ideas to life. Today, we have an exciting topic to cover: how to control page security from the live app. We'll show you how to build this functionality using Tadabase.

So, what's our goal? We want to create a system that allows us to restrict access to certain pages from the live application. In other words, we want to control who can view specific pages based on their status. We'll achieve this by using page rules, pipes, and record IDs.

To give you a quick overview of the process, we'll create a page in the builder that consists of different records representing our pages. Each record will have a title and a status. We'll use the record ID to identify each page. Then, for each page, we'll run a page rule that triggers a pipe, which makes an API call to our own app to check the status of the page. Based on the status, we'll either allow or restrict access to the page.

Let's take a look at the finished product. We'll have a list of pages with their respective statuses. If a page is marked as inactive, visitors will see a message indicating that the page is inactive and won't be able to access it. However, if the page is active, visitors can freely navigate to it.

Now, let's jump into the builder and start building this out together. First, we'll create a page called "Page Security" to manage our page access. We'll add fields for page name, page status, and record ID. The page name and record ID fields are for our reference, while the page status field determines whether a page is active or inactive.

Next, we'll populate the record ID field with the unique ID of each page. This ID helps us identify and fetch the specific page's status. We can populate the field either through a table rule or by adding new pages using a form and record rules.

With our table set up, we'll move on to using pipes. We'll install the Tadabase REST API pipe, which allows us to make API requests to our own app. Inside the pipe, we'll configure the API parameters, including the API key, app ID, and table ID. We'll also set up a "Get a Single Record" call to retrieve the page's status based on the record ID.

Once the pipe is ready, we'll go back to the page builder and set up our page rule. We'll create a rule that shows a message when a page is inactive. We'll use the pipe as a condition and check if the page status is inactive. If it is, the message will be displayed, alerting users that they can't access the page.

That's it! We'll save everything and return to the live app to see the results. Users will now be restricted from accessing inactive pages and only allowed to view active ones.

Remember, by following these steps and leveraging the power of page rules, pipes, and record IDs, you can easily control page security in your live app. Whether you want to restrict certain pages to specific users or create customized access rules, Tadabase has you covered.

Happy building!

How did we do ?

Previous Article
How do I build a payment system with Stripe?
Next Article
How do I build a complex User creation workflow?
Back to top
API
100% Operational
Apps
100% Operational
Builder
100% Operational
Overall Status
100% Operational