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

[DROPDOWN] - Set the default selected value for dropdown that use Remote (API). #6406

Open
banyurachman opened this issue May 24, 2018 · 3 comments

Comments

@banyurachman
Copy link

I have a question about the dropdown that uses remote (API). I selected some items and save it to my database. Then if I want to edit the data, I want to it shows the selected item that I select it before. How it make it works? Because I can't put the selected:true on the API response because the item just shows 10 item that best matches with the query keyword.

Thanks!

@y0hami
Copy link
Member

y0hami commented May 24, 2018

Have you tried making a request on page load to get a list of the selected items and setting the dropdown values to these and setting them as selected?

@fastrer
Copy link

fastrer commented Aug 23, 2018

same question, there's a way to set up selected value from api response?

@dbrw
Copy link

dbrw commented Sep 21, 2018

I think the use case can also like this:

I have a working search dropdown with API, then I want to copy the first dropdown into new dinamically created dropdown.

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

No branches or pull requests

4 participants