SOLVED

Re: Marketo Form Pre-fill

Go to solution
Laveena_Bajaj
Level 1

I have a few Marketo forms in place where I collect consent from people to send text messages to them. By default I have set them as blank and not pre-filled. But whenever I view my forms, these check boxes come as pre-filled. I have cleared the cache, checked in incognito mode and everywhere but I am unable to fix this. Has anyone else faced the same issue and how did you fix this?

Tags (2)
1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

First, native Pre-Fill is never supported on non-Marketo LPs (you must use my custom JS solution for that). So what you’re seeing cannot be “Pre-Fill” (using Marketo terminology) in any case.

 

The problem is in your form config, you have the default value set to “Opt In”. This is apparent from the form descriptor:

 [{
        "Id": 231670,
        "Name": "Text_Messaging__c",
        "Datatype": "checkbox",
        "Maxlength": 255,
        "PicklistValues": [{
            "label": "Yes, I would like to receive text messages",
            "value": "Opt In"
        }],
        "InputLabel": "",
        "InputInitialValue": "Opt In",
        "InputSourceChannel": "constant",
        "InputSourceSelector": "",
        "VisibleRows": 4,
        "ProfilingFieldNumber": 0,
        "ValidationMessage": "This field is required.",
        "DisablePrefill": true
    }],

 

See where it says “InputInitialValue": “Opt In"? That’s the way you have it set in Form Editor. If you can’t see this setting now, it’s possible that if you switched the form field type to checkbox some old setting is still sticking around. If delete and re-add the field, you’ll be back to the default state.

View solution in original post

6 REPLIES 6
Laveena_Bajaj
Level 1

Here is a link to the page: https://learn.yorkvilleu.ca/master-of-education-curriculum-and-pedagogy/online/. This is not on Marketo but hosted outside. Let me know if this helps or would you require any other details.

SanfordWhiteman
Level 10 - Community Moderator

First, native Pre-Fill is never supported on non-Marketo LPs (you must use my custom JS solution for that). So what you’re seeing cannot be “Pre-Fill” (using Marketo terminology) in any case.

 

The problem is in your form config, you have the default value set to “Opt In”. This is apparent from the form descriptor:

 [{
        "Id": 231670,
        "Name": "Text_Messaging__c",
        "Datatype": "checkbox",
        "Maxlength": 255,
        "PicklistValues": [{
            "label": "Yes, I would like to receive text messages",
            "value": "Opt In"
        }],
        "InputLabel": "",
        "InputInitialValue": "Opt In",
        "InputSourceChannel": "constant",
        "InputSourceSelector": "",
        "VisibleRows": 4,
        "ProfilingFieldNumber": 0,
        "ValidationMessage": "This field is required.",
        "DisablePrefill": true
    }],

 

See where it says “InputInitialValue": “Opt In"? That’s the way you have it set in Form Editor. If you can’t see this setting now, it’s possible that if you switched the form field type to checkbox some old setting is still sticking around. If delete and re-add the field, you’ll be back to the default state.

Laveena_Bajaj
Level 1

Thank you so so much Sandord! I removed the field and added it back and now the issue seems to be solved. 

 

The code that you shared below, where can I correct it, if required in the future? On the landing page?

SanfordWhiteman
Level 10 - Community Moderator

The code that you shared below, where can I correct it, if required in the future? On the landing page?


The form descriptor JSON is managed by Form Editor. You’d never edit it yourself. I just happen to be familiar with looking at that stuff (lacking access to your Form Editor).

SanfordWhiteman
Level 10 - Community Moderator
SanfordWhiteman
Level 10 - Community Moderator

Can you link to your page, please? Also, if it’s a Marketo LP, remember that the LP needs to be reapproved if you approved changes to the form.