Variables
Introduction
With Variables you can store and read data from a single unique field. You can access data from your Flows, Pages, Blocks and functions.
Variables in private apps are dynamic components. If your app is live, not only can you access the live data from your app, but any changes made within your Variables will also impact your published apps. Changes to the Variables type, value or deletion of Variables of a live app can potentially break your app!
Add Variable
To add a Variable, follow these steps:
- Navigate to the 'Variables' section in your app builder.
- Click on the '+ Create new Variable' button.
- In the pop-up window, provide a unique name for your Variable in the 'Variable Name' field.
- Select the type of the Variable from the 'Variable Type' dropdown menu. The type could be Text, Number, Boolean, etc.
- Optionally, you can set an initial value for the Variable in the 'Variable Value' field.
- Click 'Create' to safe the Variable.
Remember, the name of the Variable should be unique within the app.
Data Types
Here are the supported data types you can use in Variables:
- Text: For storing alphanumeric characters. It's ideal for names, addresses, descriptions, etc.
- Email: For storing email addresses.
- Phone Number: For storing phone numbers in the international format.
- IP Address: For storing IP addresses (IPv4).
- URL: For storing website URLs.
- Domain: For storing domain names.
- Number: For storing numeric data. It's ideal for quantities, prices, etc.
- Float: For storing floating-point numbers.
- Date: For storing dates.
- Date & Time: For storing dates and times together.
- Time: For storing time values.
- Boolean: For storing true or false values. It's ideal for yes/no questions.
Encryption
Sensitive data can be encrypted before stored in your Data Collection or Variables on our servers. This helps you to build your app more securely and protect sensitive user data around the globe.
Specifically, if you are bound to a data security framework like GDPR and want to use international fast data access via our read replicas, encryption can be useful to protect your customers personal data.
We secure your selected data with a high level AES-CBC encryption.