简体   繁体   English

自定义对象查找字段-从Web表单发布

[英]Custom Object Lookup Field - Posting from web form

I made a custom object in Salesforce and an associated custom lead field that is a Lookup data type. 我在Salesforce中创建了一个自定义对象,并创建了一个关联的自定义销售线索字段,该字段是Lookup数据类型。 I'm using a web-to-lead form and altering it to include this custom field (since Salesforce doesn't give you this Lookup field as an option when building a web-to-lead form). 我使用的是潜在客户表单,并将其更改为包括此自定义字段(因为在构建潜在客户表单时,Salesforce并未提供此“查找”字段作为选项)。 I picked up the name and values of the options in the the lookup, so it looks like this (I'm pretty sure all the values and names are correct..but this doesn't work when trying to post the data to salesforce (no errors, just that the data doesn't populate the field in Salesforce. I heard this used to work, but it's not working for me...any ideas? 我在查找中选择了选项的名称和值,所以看起来像这样(我很确定所有值和名称都是正确的。但是当尝试将数据发布到salesforce时,这不起作用(没有错误,只是数据没有填充Salesforce中的字段。我听说这曾经有用,但对我却不起作用...任何想法?

 <select name="CF00NU0000002TPVQ" id="CF00NU0000002TPVQ">
<option value="a00U00000023IRH">Session 1</option>
<option value="a00U00000023IhL">Session 2</option>
</select>

I don't think the Web-to-Lead handler will accept lookup fields. 我认为Web-to-Lead处理程序不会接受查找字段。 You could put a picklist field with the text values for the Sessions on the form and then have a trigger populate the lookup field. 您可以在表单上放置一个带有“会话”文本值的选择列表字段,然后使用触发器填充查找字段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM