Using addHiddenFields forms not mapping to Marketo fields | Community
Skip to main content
Level 2
September 15, 2022
Solved

Using addHiddenFields forms not mapping to Marketo fields

  • September 15, 2022
  • 1 reply
  • 1642 views

Hi All-

 

I created the custom script to allow our team to pull page meta data into a hidden field. It seems to work properly, and the values appear in the web console. However, I can't figure out why the fields are not populating in Marketo. The fields are mapped to Salesforce.

This screenshot shows the addHiddenFields script working and populating with the right page meta data values.

However, I am getting blanks when testing the form submits.

This was working in prior testing, but I was using Marketo fields not mapped to Salesforce. I wondering if that is causing the problem. I even changed the field names to match exactly to the API names.

The values also appear on the web form submission details page in the lead activity log.

I don't know what I am missing?!

 

Thanks,

Ben 

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

Since you didn’t supply your code, impossible to say if it’s correct.

 

But a field being synced with SFDC or not makes no difference for its immediate updateability by Marketo. (Of course if SFDC blocks updates, the value won’t “stick” long term, but it will still be initially set.)

 

I suspect you’re using the wrong field names. Make sure you’re using the SOAP, not REST, field names.

 

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
September 15, 2022

Since you didn’t supply your code, impossible to say if it’s correct.

 

But a field being synced with SFDC or not makes no difference for its immediate updateability by Marketo. (Of course if SFDC blocks updates, the value won’t “stick” long term, but it will still be initially set.)

 

I suspect you’re using the wrong field names. Make sure you’re using the SOAP, not REST, field names.

 

 

Level 2
September 15, 2022

Thanks, Sanford.

 

I was able to find the problem when exporting fields from Marketo. The SOAP API name appends an extra underscore! Once I copied that in my code, it fixed the problem!

 

REST API Name SOAP API Name
lastWpCategory__c lastWpCategory__c
lastWpTag__c lastWpTag__c
lastWpTitle__c lastWpTitle__c