Call service from Marketo Form (was: Launch webhook from Marketo Form)
Hello,
I'm working on some form validation in marketo. The current setup is a webhook connected to an external email validation service. On form submit, marketo launches the webhook and stores the email status (valid, invalid, accept all, etc.) in a custom field. This works well on post-submit, however we are looking to introduce some validation prior to the form being submitted as well. This way, we prevent invalid emails from ever entering the database, plus potential leads entering invalid emails have the opportunity to re-enter valid ones. Regex or other kinds of format detection don't always work reliably so I want to avoid using those methods if possible.
When testing the webhook, we found the response time is almost instantaneous, which is why I was wondering if there is a way to launch the webhook when someone attempts to submit the form, then have a short wait step, and then only successfully submit the form if the webhook returns the email status as 'valid'. Any advice is greatly appreciated!