Re: Moving Marketo form to another page appears to have broken it?

Anonymous
Not applicable

Moving Marketo form to another page appears to have broken it?

Last night I moved a contact form to another page on my site, which appears to have broken the form's integration with Marketo. 

One <select> option in particular returns a "Please select a value for this field" error. The "successfully" submits when I select any of the other options in that field, although none of my test submissions showed up in my Lead Database.

I've verified that form names/IDs match, which has led me to believe moving the form to a different page is the root of the issue.

Does anyone have troubleshooting steps I can take? Any troubleshooting steps would be greatly appreciated. 
Tags (1)
4 REPLIES 4
Josh_Hill13
Level 10 - Champion Alumni

Re: Moving Marketo form to another page appears to have broken it?

  • how did you "move" the form? is this embed code on your main site? Is this a Marketo LP?
  • Did you modify the form in any way?
  • Was there javascript or CSS on the original page that would have affected the form?
  • Does that field with the error have some code or a mask on it in Marketo?
Anonymous
Not applicable

Re: Moving Marketo form to another page appears to have broken it?

I have a form with all the same values on a page of my site that matches one found on a Marketo landing page I created. I moved the HTML and form styling to the new page, and also the JavaScript. I use Grunt to compile my JS, so it was moved from a page_company module to a page_contact module.

I DID modify the values for options in the <select> field mentioned in my initial post. But I made sure that these values were also updated in Marketo.

Field as seen in Marketo:

<select class="mktFormSelect mktFReq" name="ReasonforContact" id="ReasonforContact" size="1" tabindex="5">

<option value="Sales inquiry" selected="selected">Sales inquiry</option>

<option value="Training">Training</option>

<option value="Technical support">Technical support</option>

</select>

Corresponding site field:
<select class="mktFormSelect mktFReq form-control" name="ReasonforContact" size="1" style="display: block; height: 36px">

<option value="Sales inquiry" selected="selected"> Sales </option>
<option class="register-default" value="Training"> Training </option>
<option value="Technical support"> Technical Support </option>

</select>

One update: a test form submission (using one of the other <selection> options - Technical support) that wasn't returning an error DID successfully show up in my Lead Database. This must mean that the issue is specifc to the "Sales inquiry" <select> option that's returning the "Please select a value for this field." But if the field attributes on my site match the same field attributes in Marketo, what could be causing the issue?

Anonymous
Not applicable

Re: Moving Marketo form to another page appears to have broken it?

Update 2: I switched the order of the options in the field, placing Technical support first - and when I did Sales inquiry submitted and Technical support returned the error message. So whichever option is listed fist is the one that's not working.

Does this insight shed any light on the issue? 
Anonymous
Not applicable

Re: Moving Marketo form to another page appears to have broken it?

Hi Andrew,

Put a default option first.  "Please Select a Value" or whatever.  First value is always default and if its a mandatory field then it won't let you submit until you choose one below.