We are currently using the js api to get our forms from marketo which works great but now we are running into problems using the api to display a message for the user when he has already filled out a specific form.
More specifically we already got to the point where we get a different api response when we already filled out the form by setting the "Custom HTML" Option in the form and then rendering this html in our frontend. We don't know how to proceed here tho since the api response that we get from marketo does not contain any info that we could use to submit the form again to marketo or to display an option to render the original form when the user is not who we expected to be (This is worded in the default custom html snippet for known user as "Not you?").
We also didn't find a lot of info about the specific api responses when using known visitor in the documentation so maybe someone could give us a hint here too.
This screenshot shows what we get back from the api when using the innerHTML and rendering it. So we get some info about the user but the functionality is still missing and it's not clear to us how to implement it.
Thank you in advance,
... View more