简体   繁体   English

单击“保存并新建”按钮后,如何使用触发器在新的 object 表单中自动填充所需字段?

[英]How do I auto-populate desired fields in a new object form with triggers after clicking on “Save & New” button?

I'm fairly new to Salesforce and I'm trying to auto-populate a couple of custom fields in an object when creating a new one when I click on "Save & New" to make the process more userfriendly.我对 Salesforce 相当陌生,当我单击“保存并新建”以使过程更加用户友好时,我正在尝试在创建新字段时自动填充 object 中的几个自定义字段。

For example, the first time I'll fill in a serial number and the corresponding date, and the rest of the data.比如第一次我会填写一个序列号和对应的日期,以及数据的rest。 When I click on "Save & New", I want the exact serial number and date pre-filled in the new object form, seeing that otherwise, it will take too much time.当我点击“保存并新建”时,我希望在新的 object 表格中预先填写准确的序列号和日期,否则会花费太多时间。

The only solution I can think of is write a custom lightning component (LWC) to replace the standard "New" button and then add your logic when you click on "Save & New" to relaunch with pre-filled values.我能想到的唯一解决方案是编写一个自定义闪电组件 (LWC) 来替换标准的“新建”按钮,然后在单击“保存并新建”以使用预填充值重新启动时添加您的逻辑。

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

相关问题 创建新记录后重置 Lightning-record-form - Reset Lightning-record-form after creating new record 触发器是否对插入事件中的附件对象起作用? - Do triggers work for attachments object on insert event? LWC - 创建新记录后如何刷新闪电数据表的数据? - LWC - How would I refresh the data of a lightning-datatable after a new record is created? 如何使用来自外部服务的数据更新新联系人? - How do you update a new contact with data from an external service? Chromedriver新更新后,Click方法在Salesforce网页上不起作用。 如何用相同的方法来处理呢? - Click method is not working on a Salesforce webpage after the new update of Chromedriver. How to handle this with the same method? 如何使 Salesforce LWC 仅适用于新案例而不适用于现有案例 - How To Make Salesforce LWC work only for New Cases and Not on Existing cases 如何在 Salesforce 的自定义 object 选项卡上显示更多字段? - How to show more fields on custom object tabs in Salesforce? 新记录的验证问题 - Validation trouble on new records 如何使用 SOQL 从 Salesforce 中检索 2 object 字段 - How to retrieve 2 object fields from Salesforce using SOQL 如何在 lightning-record-form 上创建一个 object 与另一个 object 关联 - How to create an object related with another object on lightning-record-form
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM