Reply
Trusted Contributor
Big Ears
Posts: 160
0
Accepted Solution

Web-to-lead - Populating custom reference/lookup fields - possible?

Just a quick question:

 

I'm playing with Web-to-lead functionality and was hoping to fill in a custom field on our leads using the hidden input tag. One of our custom Lead fields is a lookup/reference field that links to an account and I'd like to fill that in automatically, so that inbound leads are linked to the right generating account.

 

I've tried using the id of an account and also the name of an account to test it, but neither seems to populate. Does anybody know if it's simply not possible? Or should I be using the 18, rather than 15 digit id, etc?

 

With thanks,

Andy

Regular Contributor
Janet Guo
Posts: 21
0

Re: Web-to-lead - Populating custom reference/lookup fields - possible?

I always advocate using the 18 digit ID. If that doesn't fix it, you might want to take another look at your Apex controller. What you're asking about, from my understanding, is definitely possible. 

Regular Contributor
AndyRouse
Posts: 20
0

Re: Web-to-lead - Populating custom reference/lookup fields - possible?

Janet,

 

Thank you for your response. I'm not using an APEX controller, as I'm just using the built-in Web-to-Lead functionality provided by Salesforce. I'm trying to keep it nice and simple at this point.

 

However, I'll have a crack at using the 18 digit id and see if that makes a difference.

 

Thanks again.

Trusted Contributor
Big Ears
Posts: 160
0

Re: Web-to-lead - Populating custom reference/lookup fields - possible?

Hello there,

 

It looks like it's simply not possible. I'll have to populate another field instead of the lookup.

 

http://success.salesforce.com/ideaView?id=08730000000Br6C