Okay, i'm about to loose my mind :), I'm stuck on this points:
Things required :
Create a form, check the result after submit by a request to my API, give a response: Conditional: if my API returns true(finds a input requested in the form in our database) redirect the user to another form. if the user input is not found on the database, redirect the user to other url. Done.
I already created a form from hubspot developer test, in the marketing section. * (I dont know if its possible to create one by my own by coding it on php) *. So gues its done this part.
Creating the conditional. But i dont know how it really works. I didn't found any option from hubspot that offers a API request. I thought there were differents ways to do this:
When form submitted: Take the info from a webhook, and then do the stuff on the API, give a response. I don't know how would it be posssible to insert this on the workflow of the form. And then check the result of the API and do the conditional stuff.
Second thought, I am missing the way to do this.
Redirect the user to another form, or another url, deppends on how the 2º step is done.
Please, I would really appreciate the help. Text me if some information is missing.
I already created a form from hubspot developer test, in the marketing section. * (I dont know if its possible to create one by my own by coding it on php) *
It is possible to create forms via API by using the Forms API Create endpoint (/marketing/v3/forms/).
https://api.hubapi.com/marketing/v3/forms/
There are instructions for PHP:
In order to allow form submission via the API, you can use the Form Submission API.
I already created a form from hubspot developer test, in the marketing section. * (I dont know if its possible to create one by my own by coding it on php) *
It is possible to create forms via API by using the Forms API Create endpoint (/marketing/v3/forms/).
https://api.hubapi.com/marketing/v3/forms/
There are instructions for PHP:
In order to allow form submission via the API, you can use the Form Submission API.