SOLVED

SimpleDTO Checkbox/Checkboxes Pre-fill Supported?

Go to solution
TyrellC
Level 2

SimpleDTO Checkbox/Checkboxes Pre-fill Supported?

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.

Tyrell Curry
Marketo Web Developer @ MERGE
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: SimpleDTO Checkbox/Checkboxes Pre-fill Supported?

Exactly! Any field you want to Pre-Fill needs to be explicitly included. Wouldn't want to implicitly reveal all kinds of other fields.

View solution in original post

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: SimpleDTO Checkbox/Checkboxes Pre-fill Supported?

SimpleDTO supports all server datatypes and input types! In fact the somewhat complex way it's architected (with the embedded XML doc) is so it can support the range of field values.

Please link to your page and I can inspect it.
SanfordWhiteman
Level 10 - Community Moderator

Re: SimpleDTO Checkbox/Checkboxes Pre-fill Supported?

And also include the full DTP template. I suspect you have a mismatch between the form field name and token name.
TyrellC
Level 2

Re: SimpleDTO Checkbox/Checkboxes Pre-fill Supported?

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

Tyrell Curry
Marketo Web Developer @ MERGE
SanfordWhiteman
Level 10 - Community Moderator

Re: SimpleDTO Checkbox/Checkboxes Pre-fill Supported?

Exactly! Any field you want to Pre-Fill needs to be explicitly included. Wouldn't want to implicitly reveal all kinds of other fields.