3 Replies Latest reply on Jul 27, 2016 12:23 PM by Sanford Whiteman

    Forms 2.0 prefill is currently broken: HTML entities used in JS context

    Sanford Whiteman

      FYI: prefill is currently massively broken. A client brought this to my attention tonight.  The regression may have been this past weekend.


      The direct cause is simple: Marketo is outputting the HTML named entity " (double quotation mark) in the prefill JSON block.


      Not only is there no reason at all to HTML-encode the quotation mark here, it also is invalid JS.  So the prefill fields are never populated.


      <script type="text/javascript">
      var mktoPreFillFields = {&quot;FirstName&quot;:decodeURIComponent(&quot;Sanford&quot;)};


      I will post a quickfix as soon as I can.