Good morning Hive Mind!
We have a form where our SalesOps group wants two fields:
* Phone
They want to set it up so that one or the other is required, but AT LEAST one must be filled out. That is, if someone fills out Email, they don't have to fill out Phone and vice versa, but ONE of the two fields must have a value. How would we do that?
Solved! Go to Solution.
On the form side, this is easy to do.
But before I tell you how, I want to sound a warning that may make you rethink the concept.
If you submit a form without an empty Email Address field, Marketo will create a new lead with no email. Marketo will never dedupe on Phone, so each time the form is submitted with the same phone number will create a duplicate. Are you 100% sure this is what you want?
On the form side, this is easy to do.
But before I tell you how, I want to sound a warning that may make you rethink the concept.
If you submit a form without an empty Email Address field, Marketo will create a new lead with no email. Marketo will never dedupe on Phone, so each time the form is submitted with the same phone number will create a duplicate. Are you 100% sure this is what you want?
RIGHT; in the churn of the argument about this, had forgotten that. Let me go back to SalesOps and point this out, which may change the game. TY!
Hi Sanford,
Was the solution for the conditionally required form fields ever shared with the community? We have another use case that would potentially benefit from your insight with this topic.
Thank you!
Alas that blog post is in my Drafts along with tens of others. If you’re adventurous there’s working code here:
Looks great! Thank you!