Can you insert field data into forms api submit() function
My company's current process is:
- Custom form on website
- On Submit, we push the data to our own database
- A custom procedure manages the Person create/update, merges the anonymous record, creates a custom activity that mimics a marketo form fill.
We capture the Marketo cookie id (forgive me for not using exact terminology here) in order to merge the anonymous record via the API call.
We have an oppty to update step 3 of the process and I now want to change to simply submit the form data and hopefully the cookie id.
Here is my layman’s layout of the new process.
Assume a simple form with only first name and email fields on it.
.submit(
formID: 1234
marketoCookieID: 123-2345-234,
firstName: JJ,
email:jj@domain.com
)
My questions to the community.
- Does the Marketo form API work this way? I can’t find any examples or
- If no, is there a better method other than HTTP POST? I’ve done that in the past for a customer. But I don’t believe you get a response.
- How can we merge the anonymous record in this process?