[英]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.