简体   繁体   English

Salesforce Web-to-lead表单中的自定义对象选择字段

[英]Custom object select field in Salesforce web-to-lead form

I have a custom object in salesforce called Classes and I am using the Leads object for storing student information. 我在salesforce中有一个名为Classes的自定义对象,我使用Leads对象来存储学生信息。 I have a web-to-lead form for capturing student registrations, but I would like to have the students select which class they are registering for, from a dropdown select field. 我有一个用于捕获学生注册的网络到主导的表格,但我希望学生从下拉选择字段中选择他们正在注册的课程。

Is that possible using the web-to-lead form, or do I have to create a custom one with SQL queries? 是否可以使用web-to-lead表单,或者我是否必须使用SQL查询创建自定义表单?

Thanks in advance. 提前致谢。

What's the relation between the two? 这两者之间有什么关系? Simple lookup from Lead to Class? 从Lead到Class的简单查找? In theory it should be many-to-many, with junction object. 理论上它应该是多对多的,具有结点对象。

From what I remember custom lookups from lead aren't available in the W2L form. 根据我的记忆,W2L表格中没有自定义查找来自铅。 Only Campaign is. 只有广告系列。 And it renders to similar HTML: 它呈现类似的HTML:

<label for="Campaign_ID">Campaign</label><select  id="Campaign_ID" name="Campaign_ID"><option value="">--None--</option><option value="701700000005lMn">International Electrical Engineers Association Trade Show - Mar 4-5, 2002</option>
<option value="701700000005lMl">User Conference - Jun 17-19, 2002</option>
<option value="701700000005lMk">GC Product Webinar - Jan 7, 2002</option>
<option value="701700000005lMm">DM Campaign to Top Customers - Nov 12-23, 2001</option>
</select><br>

So perhaps you could fake it, hand-craft similar HTML, point to your custom field, put right record ids in the options... Messy. 所以也许你可以假装它,手工制作类似的HTML,指向你的自定义字段,在选项中放入正确的记录ID ......凌乱。 Or consider displaying Campaigns & Campaign member stuff and then have something else (process builder? trigger?) that maps it from campaign to class. 或者考虑显示广告系列和广告系列成员的内容,然后使用其他内容(流程构建器?触发器?)将其从广告系列映射到类。

If you have many-to-many or don't really like such workarounds - yup, looks like some code needed. 如果你有多对多或者不喜欢这样的解决方法 - 是的,看起来需要一些代码。 Perhaps expose a Visualforce page as Site for signing up. 也许将Visualforce页面公开为Site进行注册。 Or - for non-technical people - Site.com might be tempting. 或者 - 对于非技术人员--Site.com可能很诱人。 https://salesforce.stackexchange.com/questions/23252/difference-between-force-com-site-and-site-com https://salesforce.stackexchange.com/questions/23252/difference-between-force-com-site-and-site-com

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

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