We're redesigning our website and we've run into some issues transitioning from our old site to the new one, being developed in Django.
So far I haven't gotten something that satisfies the issue, so I thought I would post here and hope someone could assist.
The web-to-lead form Salesforce generates is operating correctly. As the stock version, it will send the data to the correct fields in leads (3 are custom, 1 text field and 2 checkboxes). However the developers have taken the code and now the check boxes aren't reading back to SFDC correctly.
Here's the code:
<div class="col-1-4">
<input class="contact-us-input" type="text" name="first_name" id="first_name" placeholder="First Name *" required/>
<input class="contact-us-input" type="text" name="last_name" id="last_name" placeholder="Last Name *" required/>
<input class="contact-us-input" type="text" name="company" id="company" placeholder="Company *" required/>
<input class="contact-us-input" type="email" name="email" id="email" placeholder="Email *" required/>
<input class="contact-us-input" type="text" name="phone" id="phone" placeholder="Phone" />
<p class="required-field-notice">*Required Field</p>
</div>
<div class="col-1-4">
<textarea class="contact-us-input" name="00N1600000EgFuw" id="00N1600000EgFuw" placeholder="Message"></textarea>
</div>
<div class="col-1-4">
<div class="checkbox-container">
<input type="checkbox" name="00N1600000EvgRY" id="00N1600000EvgRY" />
<label class="checkbox-label" for="00N1600000EvgRY">Contact me</label>
</div>
<div class="checkbox-container">
<input type="checkbox" name="00N1600000EvgRd" id="00N1600000EvgRd" />
<label class="checkbox-label" for="00N1600000EvgRd">Sign up for our Newsletter</label>
</div>
<input class="submit-button" id="submit" type="submit" name="submit" value="Submit" />
</div>
</form>
</div>
In addition they asked two questions that I was hoping someone could help with:
1) The specs for the new site require that the return page be the one the form was sent from (I.e., no redirection; we’re intending to do the equivalent of a “thanks” page as a pop-up onClick() — how is that accomplished through the API? I’d EXPECT that sending an empty retURL value should do it, but we just get back a blank page with a salesforce.com URL;
2) is it possible to customize the “name” parameter for the two checkbox fields (if not then we have to hack the entire form in the Django template without making it possible for Django to render the form natively since you can’t have a model form field name start with a digit…). This isn’t THAT problematic, but I’d like to know for future reference.
Thanks for any guidance!
2 个回答
Thanks Jeff, I posted it there last week and got no responses so I figured I'd try on here.