I'm currently trying to implement a Marketo form with some custom logic for being progressive.
What I currently have working...
1) I have Munchkin code on my page
2) The page can make a REST call to Marketo with a LeadId, and based on the returned values is decided what fields to show, and it prefills them if data already exists.
What I need to do...
1) Submit the fields back to Marketo. I have the ID of the Form in Marketo, if there is a way to get around the nested <forms> and submit.
2) Updating the Lead directly would work, however I'm not sure how to create a new Lead using just the Munchkin cookie code. I've figured out how to use filter types to see if a Lead already exists for the Munchkin code, but not how to create a new Lead on submit.
Any help or suggestions would be appreciated.