Are there specific directions for setting up forms when using the SOAP & Javascript API method? | Community
Skip to main content
September 29, 2015
Solved

Are there specific directions for setting up forms when using the SOAP & Javascript API method?

  • September 29, 2015
  • 3 replies
  • 3990 views

We are attempting to use the SOAP and Javascript API method to get form submissions from our website into Marketo since we had some issues with using the embed code option. Are there specific instructions on how the Marketo form needs to be setup when using this method?

I built the Marketo form and Smart Campaign according to normal practice and then our developer used the Marketo module in Drupal with the form ID to set up the communication. The form submits and generates leads using SOAP and the JS API. However, the lead is not showing up in the results of the Campaign where the Marketo form is located and it's not triggering the Smart Campaign to generate a response email and an alert email.

We submitted a support case for assistance but unfortunately Marketo does not provide support for Drupal modules. Do anyone have experience with this? I'd like to first ensure that I've done everything correctly on the Marketo side for using this method. Any ideas or articles on this?

Thanks!

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

Just to close the loop.....I think we figured this out and now have it working. For the Smart List, we used the 'Lead Is Created' trigger and used the Lead Source as the constraint, and the 'Fills Out Form' trigger and used the form name as the constraint. Then I selected 'Use ANY filters' so we could catch new leads or updated existing ones.

3 replies

September 29, 2015

How is the activity being logged against the lead when they fill out this form?

Often it is a lead update rather than a form fill out activity and this is why it doesn't trigger fills out form campaigns.
One option might be to use the data value changes trigger and add the source constraint for API.

Maybe Kenny Elkington​ might have other suggestions here? Form post option or maybe even a candidate for custom activity type?

September 29, 2015

Hi Cathy,

Thanks for your response. A new lead is created and a "Fill Out Form" activity shows in the Activity Log for the lead. See screenshot below.

If I used the Change Data Value trigger, would the source constraint for API be the lead source?

Kenny_Elkington
Adobe Employee
Adobe Employee
September 29, 2015

Hi Carolyn,

What conditions are you trying to set for this trigger?  Is it on Lead Creation or on form fillout?

SanfordWhiteman
Level 10
September 29, 2015

Carolyn, "SOAP and Javascript API" doesn't really make sense.  If you're using Drupal to post form data, then you're not using JS.  And I hope you're not using SOAP for this task, since it opens you to a DoS attack.    Rather, from your description it sounds like you're using server-side form posts.  While not usually necessary, server-side posts are relatively resilient.  Yet they are also not an "API" per se: the posts appear exactly like a client-side (browser) form post to Marketo, save for the fact that the IP address is always the same (i.e. the address of your server). 

September 29, 2015

Sorry, we're using the Forms 2 method in Drupal but something is wrong because the information is all coming in correctly but the Fills Out Form trigger in my Smart Campaign is not firing so the emails and other actions are not being taken.

Do we need to send the lead source as a hidden field in order to make the trigger fire off? We are already sending the form ID using the Form2 Handler.

SanfordWhiteman
Level 10
September 29, 2015

If the trigger is on Filled Out Form activities you don't need any other triggers.  You might want to constrain the trigger to just this form, but if you put an unconstrained trigger -- try it now -- you will catch these fillouts.  If you don't, it means you have some kind of additional filter or constraint. 

Accepted solution
October 5, 2015

Just to close the loop.....I think we figured this out and now have it working. For the Smart List, we used the 'Lead Is Created' trigger and used the Lead Source as the constraint, and the 'Fills Out Form' trigger and used the form name as the constraint. Then I selected 'Use ANY filters' so we could catch new leads or updated existing ones.