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
Marc Bourlon 21Marc Bourlon 21 

recordEditForm: Guest Users cannot create Contact?

I need Guest users in my Community to be able to give their details, to create the corresponding Contact. I gave the Guest profile Create (and even Read, even if it should not be needed) rights on the Contact object.
In terms of permissions, it works, because my Guest Users can now use a Quick Create action on Contact, which they could not see before.
However, lightning:recordEditForm fails displaying at all, even for creating a Contact.
I consider this as a bug of the component. Am I right?
muenzpraegermuenzpraeger
What's the error from the <lightning:messages> tag?
Marc Bourlon 21Marc Bourlon 21
Hi Muenzpraeger: there is no message, which, if I'm not mistaken, appear only when you have saving errors (correct or not?). The form does not display AT ALL. Example: if I have some pure text tags like h1, p, etc. INSIDE the form tag, they don't even render. If I comment out all the lightning:inputFields, then the text tags appear... :-/
muenzpraegermuenzpraeger
Can you post your code here?
Marc Bourlon 21Marc Bourlon 21
<aura:component implements="forceCommunity:availableForAllPageTypes,lightning:availableForFlowScreens" access="global" >
    <h1>Test</h1>

    <lightning:recordEditForm aura:id="contactForm"
                              objectApiName="Contact"
                              recordTypeId="0120O000000RJwv"
                              onsuccess="{! c.onSuccess }"
                              >
        <lightning:messages />
        
        <h1>Contact Details</h1>
        <lightning:layout horizontalAlign="spread" pullToBoundary="small" class="slds-wrap">

            <lightning:layoutItem size="5" smallDeviceSize="12" mediumDeviceSize="5" largeDeviceSize="5" padding="around-small">
                <lightning:inputField fieldName="FirstName" required="true" />
            </lightning:layoutItem>

        </lightning:layout>

        <lightning:button variant="brand" type="submit" label="Send" />
        
    </lightning:recordEditForm>
    
</aura:component>