The web to case field names are different than web to lead. You need to use the correct field names for that data to transfer to a new case.
The web to case API does not return a case number. If you want that, you’d need to use the full Salesforce API.
So, I tested that out. Salesforce has the input value as name for contact name. I put that into the form and now I get a 404 can’t find. When I remove the contact name label it works. Not sure why the value of Name is not working for the web to case part.
Any ideas?
Thanks
name is a reserved query variable in WordPress.
Which version of the plugin are you using? Recent versions have a prefix on field names to avoid this issue.
Version says 2.7.3.2 with no update available.
what do I do with cases if salesforce says the field is called name? Is there a way around that?
When I generate the html Case form in salesforce they have this for the contact name:
<label for=”name”>Contact Name</label><input id=”name” maxlength=”80″ name=”name” size=”20″ type=”text” />
Weird. It does appear to still be broken in the 2.x branch (the 3.x beta has a fix for this). I’ll get that on my priority fix list.
Yes, the Salesforce generated from wouldn’t work in WordPress either 😉
Yeah, I figured out that it didn’t work haha. I just use it now to see what they called their labels/inputs. Good to know there is a fix coming.
Thanks for the help!
Just to make sure I’m clear with your fix coming, will there be a work around to include the name for Contact Name even though salesfoce says the field is labeled ‘name’?
if that makes sense…
Yes, It’ll prefix it in the DOM, but send the unprefixed value to Salesforce.
The fix is already written, just not merged into the 2.x branch.