is there a chance to add custom button in lightning record form? For example we're creating a record and we have two buttons "Cancel" and "Save". When I click "Save" I have a view layout with all data regarding created record and here under the data I would like to add button something like "Create New Record".
Is it possible to add it using JS+HTML or is it completly impossible to gain ?
답변 2개
Hi Tomas,Greetings!You cannot inject any buttons on lightning:recordForm directly. But you can always create custom buttons on the component that utilizes this component. You will though need a mechanism to interact with the fields on the record form.If you want custom behavior, you should instead look to use lightning:recordEditFormhttps://developer.salesforce.com/docs/component-library/bundle/lightning:recordEditForm/documentationKindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.Warm Regards,Shirisha Pathuri