Determine the Displayed Active Contact fields using HubSpot API

DrDani
Member

I

 have choosen the property fields of new contacts in the settings of HubSpot

Choose property fields for new contacts https://app-eu1.hubspot.com/sales-products-settings//contacts

How do I determine from the https://api.hubapi.com/crm/v3/properties/contacts?archived=false&hapikey=<API_KEY>

which properties among the listed ones are displayed on the form? I have only enabled Persona and TestLabel while the other fields are hidden and not selected to display in the form. How do I conclude which the property is being displayed and which are not displayed via the API? Site

I API gives a complete list of properties

  {
    "name": "example_property_name",
    "label": "Example Property Name",
    "description": "Example Description of the property",
    "groupName": "contactinformation",
    "type": "string",
    "fieldType": "text",
    "options": [
      
    ],
    "deleted": false,
    "displayOrder": -1,
    "readOnlyValue": false,
    "readOnlyDefinition": false,
    "hidden": false,
    "mutableDefinitionNotDeletable": false,
    "favorited": false,
    "favoritedOrder": -1,
    "calculated": false,
    "externalOptions": false,
    "displayMode": "current_value",
    "formField": true
  }

 0V3ai.png

0 Upvotes
1 Reply 1
dennisedson
Community Manager

@DrDani ,

I am not 100% clear on the question.  I think what you are looking for is the value of hidden which determines if a field is hidden from the UI.  You can also set the formField to false if you do not want it to be an option for forms

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes