About this article
Hiding a user profile field using filters until it becomes relevant can be useful if there are a lot of different user profile fields. This guide will quickly give an example of how this can be set up
Sections in this article:
Configuration to get the behavior seen in "Finished result" can be set up like the following in Datasources:
Cities is the data source we can see opened on the right side in the above screenshot.
Set up as a dropdown field in the user profile labelled "City", which is seen on the left side.
Country in the Schema for Cities is a reference to the data source: Countries. Which is set up as a dropdown field in the user profile labelled as "Country"
Doing this allows the admin to configure a filter in the City user profile field dropdown, set to "Country"
Here is another view showing how Countries Data source is added into the Cities Data source, using the "Reference" schema field type added to Cities.
User Profile Configuration
Configuration to get the above behavior can be set up like the following in the User profile:
In Admin Center of your Templafy tenant, go to Users -> User Profile -> Edit Form
See below screenshots for the exact configuration, but summed up:
Cityhas a filter set up in the configuration tab for
Countryneeds to be set as a required field in the "General" tab.
Cityneeds to be set as a NOT required field in the "General" tab and have Hide if no user interaction enabled.
Citywill only show up if a user selects a value in