Error from Hubspot Contact API Submission on Website_Get Started Form (NewForm.php)
Response:{"validationResults":[{"isValid":false,"message":"Surgical Tech was not one of the allowed options: [label: \"In-School LPN, LVN, Paramedic\"\nvalue: \"In-School LPN, LVN, Paramedic\"\ndisplay_order: 0\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"--Select One--\"\nvalue: \"--Select One--\"\ndisplay_order: 1\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"LPN\"\nvalue: \"LPN\"\ndisplay_order: 2\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"LVN\"\nvalue: \"LVN\"\ndisplay_order: 3\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Paramedic\"\nvalue: \"Paramedic\"\ndisplay_order: 4\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Physician Assistant\"\nvalue: \"Physician Assistant\"\ndisplay_order: 5\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"LPN/LVN\"\nvalue: \"LPN/LVN\"\ndisplay_order: 6\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"RN\"\nvalue: \"RN\"\ndisplay_order: 7\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Other\"\nvalue: \"Other\"\ndisplay_order: 8\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Doctor\"\nvalue: \"Doctor\"\ndisplay_order: 9\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Medical Doctor\"\nvalue: \"Medical Doctor\"\ndisplay_order: 10\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Respiratory Therapist\"\nvalue: \"Respiratory Therapist\"\ndisplay_order: 11\ndouble_data: 0.0\nhidden: true\ndescription: \"\"\nread_only: false\n, label: \"Physician (w/ foriegn license)\"\nvalue: \"Physician (w/ foriegn license)\"\ndisplay_order: 12\ndouble_data: 0.0\nhidden: true\ndescription: \"\"\nread_only: false\n, label: \"In-School LPN, LVN, Paramedic, RT\"\nvalue: \"In-School LPN, LVN, Paramedic, RT\"\ndisplay_order: 13\ndouble_data: 0.0\nhidden: true\ndescription: \"\"\nread_only: false\n, label: \"RT\"\nvalue: \"RT\"\ndisplay_order: 14\ndouble_data: 0.0\nhidden: true\ndescription: \"\"\nread_only: false\n, label: \"CNA/CMA\"\nvalue: \"CNA/CMA\"\ndisplay_order: 15\n, label: \"EMT\"\nvalue: \"EMT\"\ndisplay_order: 16\n, label: \"Physician\\'s Assistant\"\nvalue: \"Physician\\'s Assistant\"\ndisplay_order: 17\n, label: \"None\"\nvalue: \"None\"\ndisplay_order: 18\n]","error":"INVALID_OPTION","name":"please_select_your_license_"}],"status":"error","message":"Property values were not valid","correlationId":"eb19b663-2164-4a85-a384-d5d145fd7e09"}
Info:
url:"https:\/\/api.hubapi.com\/contacts\/v1\/contact\/createOrUpdate\/email\/dariuselvita26@gmail.com"; content_type:"application\/json;charset=utf-8"; http_code:400; header_size:1351; request_size:904; filetime:-1; ssl_verify_result:20; redirect_count:0; total_time:0.196265999999999996017407966064638458192348480224609375; namelookup_time:0.000666000000000000033813229993739923884277231991291046142578125; connect_time:0.022582999999999998907984632978696026839315891265869140625; pretransfer_time:0.046374999999999999555910790149937383830547332763671875; size_upload:515; size_download:2678; speed_download:13644; speed_upload:2623; download_content_length:2678; upload_content_length:515; starttransfer_time:0.1961779999999999912763115617053699679672718048095703125; redirect_time:0; redirect_url:""; primary_ip:"104.18.240.108"; certinfo:[]; primary_port:443; local_ip:"67.227.187.99"; local_port:49406; http_version:3; protocol:2; ssl_verifyresult:0; scheme:"https"; appconnect_time_us:46184; connect_time_us:22583; namelookup_time_us:666; pretransfer_time_us:46375; redirect_time_us:0; starttransfer_time_us:196178; total_time_us:196266;
Status Code:400
CURL Error:
JSON DATA:{"properties":[{"property":"firstname","value":"Elvita"},{"property":"lastname","value":"Darius"},{"property":"email","value":"dariuselvita26@gmail.com"},{"property":"phone","value":"8572061648"},{"property":"zip","value":"02301"},{"property":"please_select_your_license_","value":"Surgical Tech"},{"property":"degree","value":"Dental Hygienist"},{"property":"how_did_you_find_us_","value":"Referral - Nursing Home\/Work"},{"property":"lead_status","value":"New Lead"},{"property":"lifecyclestage","value":"lead"}]}
146.75.253.252
Needham, Massachusetts 02492
Form Title: Website_Get Started
File Name: NewForm.php
Session ID: e02878ad08111709bad94b4d530a3768
Form ID: 6dd3327bdc8bbf0bbbdba65699a45e81
Key: eyJBIjoiMXA2eXl2ZiIsIkIiOiJlOWgwM3dpIiwiQyI6ImV5YmZhIiwiRCI6InVoMGVpaiIsIkUiOiIxZzRnbHNtIiwiRiI6IjE2bW9yY3gifQ==
Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
PHP_SELF: /forms/Views/NewForm.php
GATEWAY_INTERFACE: CGI/1.1
SERVER_ADDR: 67.227.187.99
SERVER_NAME: www2.achievetestprep.com
SERVER_SOFTWARE: Apache
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: POST
REQUEST_TIME: 1724873140
REQUEST_TIME_FLOAT: 1724873140.7298
DOCUMENT_ROOT: /home/achievetestprep/public_html/www2.achievetestprep.com
HTTP_ACCEPT: */*
HTTP_ACCEPT_ENCODING: gzip, deflate, br
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9
HTTP_CONNECTION: keep-alive
HTTP_HOST: www2.achievetestprep.com
HTTP_REFERER: https://www2.achievetestprep.com/forms/Views/NewForm.php?page_url=https%3A%2F%2Fwww.achievetestprep.com%2Fcareer-paths%2Fdental-hygienist&page_title=Dental%20Hygiene%20Bridge%20Program%20%7C%20Achieve%20Test%20Prep
HTTP_USER_AGENT: Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
HTTPS: on
REMOTE_ADDR: 146.75.253.252
REMOTE_PORT: 14803
SCRIPT_FILENAME: /home/achievetestprep/public_html/www2.achievetestprep.com/forms/Views/NewForm.php
SERVER_ADMIN: webmaster@www2.achievetestprep.com
SERVER_PORT: 443
SCRIPT_NAME: /forms/Views/NewForm.php
REQUEST_URI: /forms/Views/NewForm.php
Array
(
[fname] => Array
(
[label] => First Name
[placeholder] => Your first name
[column] => 1
[required] => 1
[req_dependant] => None
[type] => text
[size] => 25
[sf_lead_field] => First_Name__c
[hs_field] => firstname
[valid] => 1
[post] => 4jb633
[value] => Elvita
)
[lname] => Array
(
[label] => Last Name
[placeholder] => Your last name
[column] => 1
[required] => 1
[req_dependant] => None
[type] => text
[size] => 25
[sf_lead_field] => Name
[hs_field] => lastname
[valid] => 1
[post] => 4jb634
[value] => Darius
)
[email] => Array
(
[label] => Email Address
[placeholder] => your@emailaddress.com
[column] => 1
[required] => 1
[req_dependant] => None
[type] => email
[size] => 25
[sf_lead_field] => Email__c
[hs_field] => email
[valid] => 1
[post] => 4jb635
[value] => dariuselvita26@gmail.com
)
[phone] => Array
(
[label] => Mobile Phone
[placeholder] => 123 345 6789
[column] => 1
[required] => 1
[req_dependant] => none
[type] => phone
[size] => 25
[sf_lead_field] => Mobile_Primary__c
[hs_field] => phone
[note] =>
[valid] => 1
[post] => 4jb636
[value] => 8572061648
)
[zip] => Array
(
[label] => Zip Code
[placeholder] => 012345
[column] => 1
[required] => 1
[req_dependant] => None
[type] => zip
[sf_lead_field] => Zip_Code__c
[hs_field] => zip
[valid] => 1
[post] => 4jb637
[value] => 02301
)
[license] => Array
(
[label] => Current License
[placeholder] => Please select
[column] => 1
[required] => 1
[req_dependant] => None
[type] => select
[options] => Array
(
[CNA/CMA] => CNA/CMA
[EMT] => EMT
[LPN/LVN] => LPN/LVN
[Paramedic] => Paramedic
[RN] => RN
[Respiratory Therapist] => RT
[Surgical Technician] => Surgical Tech
[None of the above] => None
)
[sf_lead_field] => License_Master__c
[sf_instructor_field] => License__c
[hs_field] => please_select_your_license_
[note] =>
[valid] => 1
[post] => 4jb638
[value] => Surgical Tech
)
[degree] => Array
(
[label] => Program of Interest:
[placeholder] => Please select
[column] => 1
[required] => 1
[req_dependant] => None
[type] => select
[options] => Array
(
[Nursing – LPN to RN] => RN Bridge (ASN or BSN)
[Nursing – LPN to BSN] => RN Bridge (ASN or BSN)
[Nursing – RN to BSN] => RN to BSN Bridge
[Nursing – CNA to RN] => CNA to RN
[Nursing – EMT to RN] => EMT to RN
[Nursing – Paramedic to RN] => Paramedic to RN
[Nursing – Surgical Tech to RN] => Surgical Technician to RN
[Nursing – Medical Asst to RN] => MA to RN
[Nursing – Entry to Nursing] => Nursing - General Degree
[Nursing – LPN to Nurse Practitioner] => LPN to Nurse Practitioner
[Dental – Dental Hygienist] => Dental Hygienist
[General – Business] => Business Degree
[General – Marketing] => Business
[General – Healthcare] => Healthcare Administration
[General – IT/Computer Science] => Computer Science + IT
[General – Other] => General Degree
)
[sf_lead_field] => Initial_Program_of_Interest__c
[sf_instructor_field] =>
[hs_field] => degree
[note] =>
[valid] => 1
[post] => 4jb639
[value] => Dental Hygienist
)
[find] => Array
(
[label] => How did you find us
[placeholder] => Please select
[column] => 1
[required] => 1
[req_dependant] => None
[type] => select
[options] => Array
(
[Blog/Forum] => Blog/Forum
[Email] => Email
[Facebook] => Facebook
[Instagram] => Instagram
[LinkedIn] => LinkedIn
[Online Job Board] => Other Online Job Board
[Pinterest] => Pinterest
[Received postcard in the mail] => Postcard
[Received letter in the mail (not postcard)] => Letter - in mail
[Referred by Achieve Student] => Referral - Student
[Referred by Someone at Work] => Referral - Nursing Home/Work
[Referred by Other] => Referral - Unknown person
[Search Engine] => Search Engine
[TikTok] => TikTok
[Youtube] => Youtube
[Other] => Other/Unknown
)
[sf_lead_field] => Lead_Source__c
[sf_instructor_field] =>
[hs_field] => how_did_you_find_us_
[note] =>
[valid] => 1
[post] => 4jb640
[value] => Referral - Nursing Home/Work
)
[term] => Array
(
[label] => I agree to Achieve's terms and to being contacted via email, phone, or sms at the email and phone provided.
[column] =>
[required] => 1
[req_dependant] => None
[type] => checkbox
[valid] => 1
[post] => 4jb641
[value] => true
)
)