Menu
Feedback
Start here
Tutorials


Tutorials
Studio
Contact Fields
2 min read

Contact fields are variables created on the platform where we store values about the people we interact with. The values added to these fields will be saved alongside other contact information, such as their URN and the contact's creation date.

Regardless of the flow your contact is in, you can access these fields using the variable @fields.field_name or @contact.fields.field_name

{"base64":"  ","img":{"width":720,"height":472,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":18762,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/contact-fields_1.png"}}

Both variables mentioned above can point to the same contact field.

How to create a field

To access this information, go to your project and click on the ""Studio"" module in the left sidebar. Then, click on ""Contacts"" and ""**Manage Field

s**"".

{"base64":"  ","img":{"width":1838,"height":522,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":90318,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/contact-fields_2.png"}}

You will be directed to the contact fields management page, where you will find: all existing fields within your project, their written form as a variable, the type of value accepted, and how many times they have been used. To create a new field, simply click on ""Create Field.""

{"base64":"  ","img":{"width":1763,"height":843,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":72021,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/contact-fields_3.png"}}

After that, simply:

  • Choose the label for your contact field by filling in the Name field

  • Select the type of value the field can store in the Data Type selection. The accepted value types are: Text, Number, Date & Time, State, District, and Division

  • Decide whether you want this field to appear in the contact page preview by selecting the Highlight checkbox.

    {"base64":"  ","img":{"width":574,"height":354,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":12604,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/contact-fields_4.png"}}

If you want to edit any information, simply click on the existing contact field, and the edit pop-up will open again.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Campaign introduction
« Previous
Contact history
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback