Hey John,
To do that, I would put a hidden field on your form that we will populate when the Save and Learn More button is pressed. Let's call this field "Order or Save". Put this field on your form as hidden with the default value of "Order". Make sure to also turn prefill off for this field.
Then, adjust the code like so:
btn.onclick = function(){
//When the button is clicked, get the form object and submit it.
MktoForms2.whenReady(function (form){
form.vals({ "Order or Save":"Save"});
form.submit();
});
};
This will then submit the value "Save" for this form fill.
Now, we have a field that populates with different values depending on which submit button is clicked. Now create a Smart Campaign as follows:
Smart List:
Fills out Form (trigger)
Flow:
Send Email:
Choice 1: If "Order or Save" is "Save", then send the "Save" email
Default Choice: Send the "Order" email
Does that sound like a good plan?
Best,
Will
Will
Yes, this looks like the right approach. I've set it up, but it only passes the "order" value - doesn't seem to be picking up the "save" value. See anything I'm doing wrong on the page:
http://www.cochlearcommunity.com/build-your-own/n6upgrade/BYO-form.html?aliId=4723035
I've set up the field as hidden and "order" as the default value, and set the autofill to disabled, and set "Get Value from" to "Use Default Value" - always comes thru as "order" - any ideas on how to fix? Thanks for your help so far.
Thanks
John
*