In this guide, we will explain how to set and use custom user attributes.
- Please export your Formyoula user list from the User page as a CSV file - https://app.formyoula.com/users:
- Please import the list in Excel or Google Sheets.
- Under the column “custom_attributes”, please add the necessary attribute. For example, in this case, we will set the user office location:
{"Office_Location":"Rome"}
- Please export the updated User list from Excel or Google Sheets as a CSV file:
- Please import the CSV file on the Formyoula Users page:
- After the file is selected, the notification will show the number of users that will be updated. Please click “OK” to confirm:
- Next, we will add a Text field on the form:
- Please add a JavaScript field on the form, and input the below code:
formyoula.form_fields["2d8b-ceaa-2964"].set({"value":window.formyoula.form_fields.Formyoula_User_Attributes.Office_Location})
Please make sure to change the Text field ID and the exact attribute name in your JavaScript code:
- Please “Save&Close” the form.
- Now, once a user starts the form, the Text field will be auto-populated with the custom attribute value:
For any questions, please contact us - [email protected] or the Formyoula in-app chat.🙂