Hiding forms for known visitors, but still requiring some fields | Community
Skip to main content
Jack_Wildt
Level 2
October 26, 2017
Solved

Hiding forms for known visitors, but still requiring some fields

  • October 26, 2017
  • 1 reply
  • 5147 views

Hi everyone, this is an extension of this question - Hiding forms for known visitors, but still requiring some fields.

I have embedded a second form into the custom HTML that show to know visitors on the first form. The problem is that progressive profiling is not working on this second form, it asks for every field. Is there some javascript that I can use to fill in the fields we already have for the visitor?

Thanks!

Best answer by SanfordWhiteman

Above the call to loadForm() in the embed code, insert this code:

mktoPreFillFields.filledFields = Object

  .keys(mktoPreFillFields)

  .filter(function(field){

    return mktoPreFillFields[field] != "null";

  });

1 reply

SanfordWhiteman
Level 10
October 26, 2017

What's your URL?

And do you mean Progressive Profiling or Pre-Fill (ProgPro doesn't "fill in" fields, it hides fields that either have a value or are greater than your ProgPro max displayed fields setting).

Jack_Wildt
Level 2
October 26, 2017

This is my test page