Skip to main content
Tomasz Indyk (Company) 님이 #Lightning Experience에 질문했습니다

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개
  1. 2020년 4월 9일 오후 7:25
    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:recordEditForm

    https://developer.salesforce.com/docs/component-library/bundle/lightning:recordEditForm/documentation

    Kindly 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
0/9000