Missing information Form Editor API no placeholder

AMoskal
Member

Hi 👋

I'm not sure if I've just missed this somewhere, but it seems like some form information is not being returned in the API?

For example, I have a form with inputs that have placeholder text and info box text, but none of this seems to be coming through from the API... we have also set up some dependent fields (choose option A, see this input... choose option B, see that input), but similarly nothing comes through the API related to this (I thought perhaps the input object would contain some kind of data related to this logic).

I'm using:

marketing/v3/forms/{form-id}

 
Should I see information like input placeholders and info box text in the response? This input, for example, has both placeholder and info box text specified in the actual form designed in HS (but as you can see, not in the returned object):

{
    "objectTypeId": "0-1",
    "name": "website",
    "label": "Website URL",
    "required": false,
    "hidden": false,
    "fieldType": "single_line_text"
}


The conditional logic stuff is probably more complex, but this info seems pretty easy to add into the response object (or am I just missing it)? 🙏

1 Accepted solution
SBruyere
Solution
Participant

Hi again @BérangèreL ,

 

I just did a test I think I found the problem!

I have the right informations with API V2 and V3 when I use it with a form created with the Legacy Form Editor.

It's not working with the Form Editor (left side)

SBruyere_0-1755779897060.png

 

Also, the grouping is well done on the Legacy one:

SBruyere_1-1755780025727.png

Meaning I can properly make a layout on my side. 

I receive a flat fieldGroups array when using it with the new Form editor.

 

Hope this ones help.

 

Thanks

 

View solution in original post

8 Replies 8
SBruyere
Participant

Hi! I'm facing the same issue, weither I'm using form API v2 or v3.

No placeholder nor description, just empty strings, even though it's declared in the form editor of Hubspot. 

Did you find any solution?

 

Thanks!

 

This is the form preview from Hubspot:

This is the JSON I get from query:

{
    "name": "lastname",
    "label": "Last Name",
    "type": "string",
    "fieldType": "text",
    "description": "",
    "groupName": "",
    "displayOrder": -1,
    "required": false,
    "selectedOptions": [],
    "options": [],
    "validation": {
        "name": "",
        "message": "",
        "data": "",
        "useDefaultBlockList": false,
        "blockedEmailAddresses": [],
        "checkPhoneFormat": false
    },
    "enabled": true,
    "hidden": false,
    "defaultValue": "",
    "isSmartField": false,
    "unselectedLabel": "",
    "placeholder": "",
    "dependentFieldFilters": [],
    "labelHidden": false,
    "propertyObjectType": "CONTACT",
    "metaData": [],
    "objectTypeId": "0-1"
}

 

0 Upvotes
BérangèreL
Community Manager
Community Manager

Hi @SBruyere, I hope that you are well!

Thanks for reaching out to the Community!

I understand that you have been using this documentation "Forms API". Please let me know if that's not the case.

I'd love to ask our Top Experts and Community Members: Hi @AMoskal, @sylvain_tirreau and @Anton do you have suggestions to help @SBruyere, please?

Have a great day and thanks so much in advance for your help!

Bérangère, HubSpot Community Manager





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes
SBruyere
Participant

Hello Bérangère, I first tried with the V3 version which returns this:

{
    "objectTypeId": "0-1",
    "name": "lastname",
    "label": "Last Name",
    "required": false,
    "hidden": false,
    "fieldType": "single_line_text"
}

So, no placeholders.

 

Then I tried with V2, and the result is what I showed in my previous message.

 

Thanks for your answer!

SBruyere
Solution
Participant

Hi again @BérangèreL ,

 

I just did a test I think I found the problem!

I have the right informations with API V2 and V3 when I use it with a form created with the Legacy Form Editor.

It's not working with the Form Editor (left side)

SBruyere_0-1755779897060.png

 

Also, the grouping is well done on the Legacy one:

SBruyere_1-1755780025727.png

Meaning I can properly make a layout on my side. 

I receive a flat fieldGroups array when using it with the new Form editor.

 

Hope this ones help.

 

Thanks

 

MBansal6
Member

Did you find the solution to how to get grouping right with new editor?

0 Upvotes
BérangèreL
Community Manager
Community Manager

Hi @SBruyere,
 

Thank you so much for taking the time to test this and share your findings with us. Your detailed observations and screenshots are incredibly helpful!
 

It’s great to hear that the API works as expected with the Legacy Form Editor, including the proper grouping of field data.

I understand how getting a flat fieldGroups array from the new Form Editor can affect your ability to create layouts on your end.
 

I’m sharing your feedback with our product team to make sure they’re aware of this difference between the editors.

In the meantime, if you have any additional details or examples you’d like to add, please feel free to share them here, they’re invaluable to our team as we continue to improve the platform.
 

Thank you again for your thorough investigation and for helping make our community stronger!

Bérangère





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




Jaycee_Lewis
Thought Leader

Hey, @AMoskal 👋 Thanks for your question. 

 

Have you looked into these endpoints?

Best,

Jaycee





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes
AMoskal
Member

Hi @Jaycee_Lewis - thanks for the reply!

Unfortunately, while those endpoints give different data from each other, none of it still contains the info I'm looking for...

For example, looking at that object I originally posted, when I use this endpoint:

https://api.hubapi.com/forms/v2/fields/{form_id}

I get this object:

{
    "name": "website",
    "label": "Website URL",
    "type": "string",
    "fieldType": "text",
    "description": "",
    "groupName": "",
    "displayOrder": -1,
    "required": false,
    "selectedOptions": [],
    "options": [],
    "validation": {
        "name": "",
        "message": "",
        "data": "",
        "useDefaultBlockList": false,
        "blockedEmailAddresses": [],
        "checkPhoneFormat": false
    },
    "enabled": true,
    "hidden": false,
    "defaultValue": "",
    "isSmartField": false,
    "unselectedLabel": "",
    "placeholder": "",
    "dependentFieldFilters": [],
    "labelHidden": false,
    "propertyObjectType": "CONTACT",
    "metaData": [],
    "objectTypeId": "0-1"
}

 

It certainly looks like it wants to provide me fields such as placeholder (not sure about info box still - description maybe?) - but they are still empty. (Also, my issue with the v2 endpoint is that fields such as email have fieldType as just "text" which is less than useful 😞 Hence why I think v3 is the way to go, but just seems to be lacking much info from the form... unless again, I'm just not finding the right endpoint... maybe there's a hidden verbose option that I need to send somehow??)

 

For reference, the form input looks like this - I need to retrieve "This is the help text" and "This is the placeholder text":
Screenshot 2025-03-21 at 9.03.29 AM.png