map external field to known field | Community
Skip to main content
June 2, 2016
Question

map external field to known field

  • June 2, 2016
  • 2 replies
  • 1790 views

Hi,

How can I go about mapping an incoming field name from an external form to a known marketo field name.

Example:

A form on a website has a hidden field of pdfname

Marketo has a field of pdf_document__C, mapped from sales force.

How can I get marketo to push the data from the website field name to the marketo field?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Grégoire_Miche2
Level 10
June 2, 2016

Hi Matt,

You will have to use the forms 2.0 API and post a Marketo form in the background when someone fills out a form on your web site.

See Make a Marketo Form Submission in the background

-Greg

SanfordWhiteman
Level 10
June 2, 2016

In situations like this, you use a form-to-form mapping table before doing a Forms 2.0 API form post.

See my comments on this old Community post and accompanying demo code.

With the helper functions in place, the actual mapping becomes easy to express:

var mktoObj = objectMapToObject(dNNForm,{

      'cntctFirstName' : 'FirstName',

      'cntctLastName' : 'LastName',

      'cntctEmail' : 'Email',

      'cntctPhone' : 'Phone',

      'cntctCompany' : 'Company',

      'cntctService' : 'Service__c',

      'cntctComments' : 'Comments__c',

});