You need to sign in to do that
Don't have an account?
The new Learner
How to open record create form on button click
Hi Experts,
I have a requirement, if a user clicks on a button it needs to open the record create form and a user can create a related object record on save. can anyone help me on this?
I have a requirement, if a user clicks on a button it needs to open the record create form and a user can create a related object record on save. can anyone help me on this?
try below link in Lwc.
https://developer.salesforce.com/docs/component-library/bundle/lightning-record-form/documentation
Go to the Creating a Record . if you want to show record created screen after click the button then use if condition.
try below dummy code and take reference. it would help you to achieve your requirment.
don't forget to mark it as best answer.
Thank you
All Answers
you can go through below url.
https://developer.salesforce.com/docs/component-library/bundle/lightning:recordForm/documentation
you can use lightning:recordform for achieve it.
let me know if it helps you by marking it as best answer.
Thank you
I have to create it using LWC not with Aura and also cant we create gerneric component.
try below link in Lwc.
https://developer.salesforce.com/docs/component-library/bundle/lightning-record-form/documentation
Go to the Creating a Record . if you want to show record created screen after click the button then use if condition.
try below dummy code and take reference. it would help you to achieve your requirment.
don't forget to mark it as best answer.
Thank you
Its working fine, thanks for your update, however, once the record is saved its showing on the record page only, cant we hide them and show again update button , if yes kindly help me out.