Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set the default value #5

Open
schaitanya1 opened this issue May 6, 2020 · 0 comments
Open

Unable to set the default value #5

schaitanya1 opened this issue May 6, 2020 · 0 comments

Comments

@schaitanya1
Copy link

Hey, First of all, thanks a lot for this great component.
The issue I'm facing is when I try to set a default value on the Lookup when we load this, It loads the Id I give but the name is blank.
Can you please let me know where I'm going wrong.
image

The true above is coming because I set the parameter selectedName="true" if this is not set then I get blank value there.

Below is my code.
<c:lookupField
objectAPIName="Case"
label="Related To"
returnFields="['CaseNumber','Id']"
queryFields="['CaseNumber']"
selectedId="{!v.newTask.WhatId}" showAddNew="false"
showIcon="false"
selectedName="true"
/>

v.newTask.WhatId this value is set in the js controller.
Thanks a lot in advance for all the help.

Cheers,
Sri.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant