I tried to use lightning:recordEditForm to create a new custom setting record but I received an error saying
Error in fetching record or record metadata. [Unexpected Error when retrieving 'Custom_Setting__c' Layout Information ]
I can't find any information in the official documentation that custom settings are not supported for lightning:recordEditForm, is this just not documented or is there a way to get it working?
Update: This is the code I use
Application example code
<aura:application >
<c:CSREF/>
</aura:application>
Lightning component example code
<aura:component >
<lightning:recordEditForm objectApiName="Custom_Setting__c">
<div class="slds-box slds-theme_default">
<lightning:inputField fieldName="Date_Before__c"/>
<lightning:inputField fieldName="Date_After__c"/>
<lightning:inputField fieldName="Site__c"/>
<lightning:inputField fieldName="Project__c"/>
</div>
</lightning:recordEditForm>
</aura:component>
Also, Custom_Setting__c is hierarchy custom setting with at least four fields .
Date_Before__c, Date_After__c, Site__c, Project__c