204 - "No fields were submitted"

forms

#1

Hello,

I am trying to integrate HubSpot into a custom form and my PHP knowledge is limited. So any help would be very much appreciated.

When submitting my form i am getting a log of 204. When I go to my form submissions I can see an entry but no data is being carried across.

Bellow is my form code.
HTML:

    <input id="first_name" class="hs-input" name="first_name" type="text" placeholder="First Name" autocomplete="given-name" value="" required>
    <input id="lastname" class="hs-input" name="last_name" type="text" placeholder="Last Name" autocomplete="family-name" value="" required>
    <input id="phonenumber" class="hs-input" name="phone_number" type="number" placeholder="Phone Number" value="" required>
    <input value="Submit" type="submit">

And i am using the PHP script from this link:

Thanks


#2

Hi @joe.davison96,

I can't say for certain what's going on just by looking at the HTML of your form; I'll need to actually see an example request that you're sending to the Forms API, and it'd also help to have a link to the corresponding form inside HubSpot.