function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kd T 2kd T 2 

I am trying to create record from lightning:Ediitform but I got error

Here is the code:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
    
    <lightning:recordEditForm objectApiName="Menu__c" >
    <lightning:messages />
    <lightning:inputField fieldName="Item_Name__c"/>
    <lightning:inputField fieldName="Item_Type__c"/>
    <lightning:inputField fieldName="Item_Category__c"/>
    <lightning:inputField fieldName="Price__c"/>
    <lightning:button type="submit" value="Save" label="save"/>
    </lightning:recordEditForm>
</aura:component>

User-added image
Dhanya NDhanya N
Error says that you do not have access. Check if you have Read/Write access to Menu__c object and its fields which you are trying to update.
kd T 2kd T 2
I checked but no success yet