Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
Wrote you a long PM to explain it, but Marketo won't let me PM you.
I was able to get it to work with this bit of code.form.vals({"Postal Code":"{{lead.Postal Code}}", "Phone":"{{lead.Phone Number}}", "Country":"{{lead.Country}}", "First Name":"{{lead.First Name}}", "...
Looks like if the form is added directly in the page, the page puts in some JS to prefill with the appropriate fields. If you use JS to call in the form, it doesn't automatically pull the LOF and prefill. The mktoPreFillFields is called automatically based on the form.
I'm not getting pre-fill on my Marketo LPs.
Sanford, thanks. That's what I ended up doing. Previously I was trying to write them to a JS var which was causing an error. For example, if I tried this:if (name == "autodemo") {copy = "{{my.Autodemo-Body-Copy}}";} else...It'd error out. Instead, I formed scripts in my header like this:Then, in ...
The problem is you can't script in-betweens. So, it has to all be done like IF (foo=bar) {text = "{{my.stuff}}"} else if {(foo = notbar) {text = {{my.otherstuff}}}You can't transform the token. It passes both {{my.stuff}} and {{my.otherstuff}} so that when the page renders the script renders with t...
Thanks. I've got it to work, but discovered a but with Rich Text tokens. Please see this thread:Rich Text Tokens add a 'ZERO WIDTH SPACE' char between P tags
So figured this out by digging around quite a bit.I'm using JS to select the appropriate token to display on a page. The potential tokens are all Rich Text, because I want HTML output. The problem I'm getting is that Marketo forces a Zero Width Space character between
andtags. Look for yourself
...Hi all -Sorry for necroposting, but I've been using this functionality on my page but it's not prefilling the form. Is there a setting I need to add to get the pre-fill? The page has it enabled.
I'd like to have a page that adjusts its height according to the size of the form, including adjustments when fields become visible. Is there a way to get this information and put it into a page size token?