You need to sign in to do that
Don't have an account?
Marc 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?
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?
<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>