Skip to main content

Custom User Fields

Justin Yan avatar
Written by Justin Yan
Updated this week

In Frontly V2, your app's user data is managed entirely through custom user fields, which are flexible fields you define to store any piece of data tied to your users, like subscription status, organization ID, or internal roles.


What are Custom User Fields?

Custom user fields are internally stored data fields assigned to each individual user in your app.

You can create any number of custom fields such as:

  • subscription_status

  • role

  • org_id

  • onboarding_complete

  • language_preference

Each user has a unique value for each of these fields, and you can access those values using the templating variable:
{{user.CustomField}}

For example, {{user.org_id}} would return the currently logged-in user’s org_id.


How to Set Up Custom User Fields

  1. Navigate from your App Settings > Users

  2. Find and access the Custom Fields tab

  3. Add a new field by choosing a field name, and configure these additional fields:

Type - The Type validates the data when user profiles are created or updated, ensuring they meet the correct format. Most fields will be Text, but some situations might require a Select Dropdown, Number, or Boolean (true/false) values.

Default Value - This determines the value that is used when creating a new user. This is an optional field.

Include in Signup - If the 'Enable User Signup' switch is active in your app's 'Authentication' settings, toggling 'Include in Signup' will enable your users to fill this field in themselves when creating an account.

Editable By User - If 'Enable Profile Editing' has been turned on from your User Settings 'Edit Profile' tab, active users can edit their inputted values for this custom field when updating their profile.


Where to Use Custom User Fields

Custom user fields are essential to how personalization and logic works in your Frontly app. Once defined, they can be accessed like all user variables by referencing the {{user.CustomField}} syntax or through the variable injector where applicable.

Beyond simple displays, you can use these values in any of Frontly's condition systems, including:

  • Hidden Filters: Auto-filter data shown to the user by matching their custom field values (e.g., only show records where org_id = {{user.org_id}})

  • Visibility Conditions: Show or hide elements based on a user’s role or custom field (e.g., show admin-only content when {{user.role}} = admin)

  • Row Matching Schemas: When syncing form submissions or views to data sources, match rows using user-specific fields

  • AI Request Prompts: Pass user metadata into prompts via {{user.field}}

  • Custom Logic Conditions: Use conditional logic (e.g. if-else actions) based on any user field value

This makes your app dynamic, allowing each user to see the data and experience their app differently than the next user, based on the various conditions you've set up around it!


Using Tags

If you want a more simple way to group or segment users, you can also assign tags to each user.


Tags are:

  • Managed per user (not in the custom field settings)

  • Useful for more lightweight segmentation

  • Accessible in 'User' variable injector under {{user.tag}}

You might use tags like admin, vip, trial, or partner, and build conditional logic around those tags.

Did this answer your question?