+ Start a Discussion
Phuc Nguyen 18Phuc Nguyen 18 

Create child record via button

Hello,
I need to be able to create a child record from a botton with users having to enter the name.  So a user select the 'New Button' on teh aprent and a child record is created.  I have a class that populates the vlaues on the new child record but the'Name' field is required and I do not need them to enter the name field.  Any suggestion would be appreciated
Thanks
P
AbhishekAbhishek (Salesforce Developers) 
https://www.infallibletechie.com/2019/06/how-to-create-child-record-from-button.html


Your query is answered above.

If you need further suggestions check the below discussion,
https://salesforce.stackexchange.com/questions/95412/custom-new-button-to-create-child-record-and-set-saveurl-to-parent


If it helps mark it as the best answer.