Good morning all.
I have an interesting situation where I want to conditionally pre-fill some hidden form fields IF they are blank for the record.
I know I can do this pretty easily a couple of ways:
Both of these feel slightly like 'work arounds' and I'm feeling option 1. is the most stable and safe.
Am I missing an obvious and easy approach here?
Cheers
Solved! Go to Solution.
Do you mean "pre-fill" or simply "fill"?
It seems like you mean "if the field is not populated, then set it to a constant value on form submit" which you can only do in a Marketo flow, because even if you use my cross-domain pre-fill JS that still only applies if the person clicks a Marketo email or has an existing associated Munchkin session. It wouldn't work if they had a new session, starting as anonymous, and then filled out the form.
Do you mean "pre-fill" or simply "fill"?
It seems like you mean "if the field is not populated, then set it to a constant value on form submit" which you can only do in a Marketo flow, because even if you use my cross-domain pre-fill JS that still only applies if the person clicks a Marketo email or has an existing associated Munchkin session. It wouldn't work if they had a new session, starting as anonymous, and then filled out the form.
Sanford,
that was where I think I'd gotten myself to as well 🙂
As always, cheers for validating my slightly meandering thinking 🙂