[SalesForce] how to display the label on right side of checkbox using

As I am using <lightning-record-edit-form> & inside it I used <lightning-input-field>. My requirement is like If the input field is of checkbox then I want to display the checkbox field label on right side & checkbox button on left side. By default it shows the label on top of checkbox button.

Best Answer

You can achieve it by adding a variant="label-inline" to the lightning-input-field