Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- General Development
- :
- Web-to-lead - Populating custom reference/lookup f...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Web-to-lea d - Populating custom reference/ lookup fields - possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-22-2012 03:11 AM
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
Solved! Go to Solution.
Re: Web-to-lea d - Populating custom reference/ lookup fields - possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-24-2012 02:20 PM
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.
Re: Web-to-lea d - Populating custom reference/ lookup fields - possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-26-2012 09:57 AM
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.
Re: Web-to-lea d - Populating custom reference/ lookup fields - possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-02-2013 08:08 AM
Hello there,
It looks like it's simply not possible. I'll have to populate another field instead of the lookup.

