Hey all, quick question for those of you who use SimpleDTO as a pre-fill option.
Does SimpleDTO support the pre-fill of checkbox or checkboxes fields?
I am using the latest version (SimpleDTO 2.0), and I have successfully made the connection. I can see the first name, last name and email field pre-filling on the forms no problem.
However, if used on a Form such as one that stores users communication preferences, I see the checkboxes present on the form are not checked off despite being checked on the lead within the database. Is this something that is possible to pre-fill those checkboxes with SimpleDTO? Or can this only be done by using Marketo's native pre-fill?
I even console logged the values passed through the callback function, and this is what I got:
{
"FirstName": "John",
"LastName": "Doe",
"Email": "jdoe@gmail.com",
"Country": "",
"State": "",
"Phone": "",
"Title": "",
"Unsubscribed": "",
"Score": "",
"commentCapture": "",
"Industry": "",
"Company": ""
}
Is this all the values that can be possibly pre-filled with SimpleDTO?
Thanks so much.
Solved! Go to Solution.
Hey Sandy, you're awesome, I think I see what I am missing, and I suspect it's within the SimpleDTO html template.
I only included the default fields that were included in your setup steps for example:
<mktoPreFillFields>
<mktoField inputName="FirstName">{{Lead.First Name}}</mktoField>
<mktoField inputName="LastName">{{Lead.Last Name}}</mktoField>
<mktoField inputName="Email"><!--email_off-->{{Lead.Email Address}}<!--/email_off--></mktoField>
<mktoField inputName="Country">{{Lead.Country}}</mktoField>
<mktoField inputName="State">{{Lead.State}}</mktoField>
<mktoField inputName="Phone">{{Lead.Phone Number}}</mktoField>
<mktoField inputName="Title">{{Lead.Job Title}}</mktoField>
<mktoField inputName="Unsubscribed">{{Lead.Unsubscribed}}</mktoField>
<mktoField inputName="Score">{{Lead.Lead Score}}</mktoField>
<mktoField inputName="commentCapture">{{Lead.Person Notes}}</mktoField>
<mktoField inputName="Industry">{{Company.Industry}}</mktoField>
<mktoField inputName="Company">{{Company.Company Name}}</mktoField>
</mktoPreFillFields>
So what I did was include the additional checkbox inputName and token and it worked great. It's pre-filling (checked off, when true).
I assume, any field that I would like pre-filled will need to be added here correct?
Thanks again