I'm using lightning:recordEditForm to create new opportunity my code is

        <aura:attribute name="objAPIName" type="String" default="Opportunity"/>
    <lightning:inputField fieldName="Class__c" aura:id="editFormField"/>
<lightning:button variant="brand" type="submit" name="save" label="Save"/>    

Where Class__c is a Lookup field. Problem is when I try to search the lookup field(by typing something and clicking standard search option popped below the field). It's not showing the search window in the community but working fine in Org.


Probably that's because a Guest user has no access to edit field's values (discussion, and one more)

And the problem seems to exist nowadays

Try to open the console section in your chrome's devtools (or whatever you use). Is there any error?

| improve this answer | |
  • Community user is not supposed to have any access issue. Yeah, in console it's giving an error as ------- aura_prod.js:789 Uncaught (in promise) TypeError: Cannot read property 'na' of undefined at Object.dispatchGlobalEvent (aura_prod.js:789) at a (lightning-overlay-utils.js:2) at new Promise (<anonymous>) at Promise.all.then.a (lightning-overlay-utils.js:2) – VDahiya Dec 14 '18 at 10:01
  • @VDahiya so have you tried to launch your community in incognito to check access as a guest user? What about an error you get... I believe you didn't use js promises so the problem seems to be at lightning framework itself – being of habits Dec 14 '18 at 10:39
  • In incognito also same error is occurring. I don't know much about JS promises. How can I resolve this? – VDahiya Dec 14 '18 at 10:50
  • Unfortunately, I have no clue what is your option here. How good you are at debugging via devtool? – being of habits Dec 14 '18 at 10:53
  • Not an expert but have some needful debugging skills. – VDahiya Dec 14 '18 at 11:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.