You need to sign in to do that
Don't have an account?
sai ram
how to create a case record using record-edit-form in lwc
<template>
<lightning-record-edit-form object-api-name="Case">
<lightning-messages>
</lightning-messages>
<lightning-output-field field-name="CaseNumber">
</lightning-output-field>
<lightning-input-field field-name="Subject">
</lightning-input-field>
<lightning-input-field field-name="PRODUCTSUBTYPE__c">
</lightning-input-field>
<lightning-input-field field-name="PRODUCTTYPE__c">
</lightning-input-field>
<lightning-input-field field-name="RMA__c">
</lightning-input-field>
<lightning-input-field field-name="FunctionalArea__c">
</lightning-input-field>
<lightning-button class="slds-m-top_small"
variant="brand"
type="submit"
name="Create"
label="Create">
</lightning-button>
</lightning-record-edit-form>
</template>
iam using above lines of code but iam unable create record
<lightning-record-edit-form object-api-name="Case">
<lightning-messages>
</lightning-messages>
<lightning-output-field field-name="CaseNumber">
</lightning-output-field>
<lightning-input-field field-name="Subject">
</lightning-input-field>
<lightning-input-field field-name="PRODUCTSUBTYPE__c">
</lightning-input-field>
<lightning-input-field field-name="PRODUCTTYPE__c">
</lightning-input-field>
<lightning-input-field field-name="RMA__c">
</lightning-input-field>
<lightning-input-field field-name="FunctionalArea__c">
</lightning-input-field>
<lightning-button class="slds-m-top_small"
variant="brand"
type="submit"
name="Create"
label="Create">
</lightning-button>
</lightning-record-edit-form>
</template>
iam using above lines of code but iam unable create record
Greetings!
Please find the sample code to create the record using lightning-record-edit-form in LWC in below blogs:
https://rajvakati.com/2019/02/16/lightning-record-edit-form/
http://www.infallibletechie.com/2019/11/lightning-record-edit-form-and.html
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
You will find Salesforce documentation about what you're asking here : https://developer.salesforce.com/docs/component-library/bundle/lightning-record-form/documentation
If you have any questions regarding this, I'm happy to answer them.
Best regards,
Barthélemy