Custom User Fields
How to setup and access Webflow's Custom User Data fields from WFU
Last updated
Was this helpful?
How to setup and access Webflow's Custom User Data fields from WFU
Last updated
Was this helpful?
Webflow Memberships allows for as part of a User's account. These custom fields can be managed through;
Through the Designer user manager
Through the Webflow API
During Sign Up, if you add those fields to the UI
On the User Account /user-account
screen, if you add those fields to the UI
We provide access to these fields both through Sygnal Attributes data-binding and directly through JavaScript. All fields are part of the Sa5User
object, as a map under the data
element.
Very important things you need to know when setting this up...
The SA5 user object creates an array of custom fields under user.data
.
You can use SA5's data-binding features with a custom attribute of wfu-bind
and a value of $user.data.FIELD-NAME
where the field name is your custom field name.
e.g. $user.data.birthdate
You can access your custom fields directly in script on the user object, e.g.;
Custom fields are named using Webflow's generated internal field names for each. Typically this process is the same as slug-generation, e.g. a custom user field named Home Address
would be slugged and internally named as home-address
.
However, there are exceptions to this rule, described below. If you're not certain, it's best to view your /user-account
page in browser devtools, and identify the field name that Webflow has assigned to your custom user fields.
The Webflow CMS and User data storage systems generate internal field names based on the generated slug, however there are situations where the slug and the internal field name will mismatch. For example, if you rename your slug field, Webflow will keep the original name as its internal field name.
As of Feb-2023, these are Webflow's current field types, and our current plans;
Plain Text
max 256 chars
Yes.
Yes.
Link
Yes.
Number
Can be defined with a min, max, and step
Yes. Delivered as a string, so that a blank value is identifiable as "" rather than 0.
Option
Pre-defined options that you choose
Yes. Delivered as the option value.
Switch
Boolean
Yes.
File
An uploaded file, such as a profile photo
Not in v3. Looking into how to retrieve the uploaded filename in the future.