Skip to content

Instantly share code, notes, and snippets.

@svierk
Created April 8, 2022 16:56
Show Gist options
  • Save svierk/b30e2335ea4df603628653ba65dd9a7d to your computer and use it in GitHub Desktop.
Save svierk/b30e2335ea4df603628653ba65dd9a7d to your computer and use it in GitHub Desktop.
import NUMBER_FIELD from '@salesforce/schema/Account.AccountNumber';
import BILLING_ADDRESS_FIELD from '@salesforce/schema/Account.BillingAddress';
import NAME_FIELD from '@salesforce/schema/Account.Name';
import { api, LightningElement } from 'lwc';
export default class AccountForm extends LightningElement {
nameField = NAME_FIELD;
numberField = NUMBER_FIELD;
billingAddressField = BILLING_ADDRESS_FIELD;
@api recordId = '0017Q00000DzcOMQAZ';
@api objectApiName = 'Account';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment