# Use Corvid to populate a custom element

**URL:** <https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [June 19, 2020, 10:21pm UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556 "2020-06-19T22:21:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tydinjarman](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tydinjarman/32/20906_2.png) [@tydinjarman](https://forum.wixstudio.com/u/tydinjarman)\
**Post date:** [June 19, 2020, 10:21pm UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556/1 "2020-06-19T22:21:26Z")

</div>

I created a custom element which is effectively an HTML DATALIST Element.  
www . w3schools . com /tags /tag\_datalist.asp

I want to know if there is a way to load the list from a Collection using corvid.

I tried to hardcode my list but its too long so it times out.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [June 19, 2020, 10:26pm UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556/2 "2020-06-19T22:26:20Z")

</div>

Isn’t it the same as DropDown-List?  
DropDown+Database = your Data-List ?

Perhaps putting all your data into a database and populate a drop-down with your data?

---

<div class="post-metadata">

**Author:** ![tydinjarman](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tydinjarman/32/20906_2.png) [@tydinjarman](https://forum.wixstudio.com/u/tydinjarman)\
**Post date:** [June 19, 2020, 10:55pm UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556/3 "2020-06-19T22:55:51Z")

</div>

yes, i only saw support for dropdown though. did i miss something?

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [June 19, 2020, 11:03pm UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556/4 "2020-06-19T23:03:39Z")

</div>

Sorry, don’t have any idea. Perhaps anybody other can help you like GOS, J.D. , Quentin Plomteux or some other very good corvid-programmer here.

---

<div class="post-metadata">

**Author:** ![tydinjarman](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tydinjarman/32/20906_2.png) [@tydinjarman](https://forum.wixstudio.com/u/tydinjarman)\
**Post date:** [June 19, 2020, 11:04pm UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556/5 "2020-06-19T23:04:56Z")

</div>

hopefully my dropdown list has 800ish options. DataList allows the user to type to narrow it down. currently they just scroll and scroll

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [June 19, 2020, 11:08pm UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556/6 "2020-06-19T23:08:43Z")

</div>

Perhaps repeater an option for you?  
There you can make the same effect of scroll & scroll and scroll.  
But i don’t know if they are maden for big data.

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [June 20, 2020, 2:41am UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556/7 "2020-06-20T02:41:23Z")

</div>

Firstly, have you read here about Custom Elements?  
[https://support.wix.com/en/corvid-by-wix/wix-custom-element-with-corvid](https://support.wix.com/en/corvid-by-wix/wix-custom-element-with-corvid)  
[https://support.wix.com/en/article/custom-element-faqs](https://support.wix.com/en/article/custom-element-faqs)  
[https://www.wix.com/corvid/reference/$w.CustomElement.html](https://www.wix.com/corvid/reference/$w.CustomElement.html)

Plus, note that they are only able to be used if you have a premium site.

As for the rest of the posts, I wouldn’t want to fill a Wix dropdown with over 800 items to go through!

Do as suggested and use a repeater, which you can do like in this example here from Vorbly.  
[https://www.vorbly.com/Vorbly-Code/WIX-CUSTOMIZED-SEARCH-BAR-USING-REPEATERS](https://www.vorbly.com/Vorbly-Code/WIX-CUSTOMIZED-SEARCH-BAR-USING-REPEATERS)

Or if you must do it in dropdown, break down the options into certain lists and then you could look at doing conditional dropdowns so that the users choice in dropdown 1 changes the options of dropdown 2 and so on.  
[https://www.wix.com/corvid/example/Cascading-Form](https://www.wix.com/corvid/example/Cascading-Form)  
[https://www.wix.com/corvid/forum/community-discussion/dependent-dropdown](https://www.wix.com/corvid/forum/community-discussion/dependent-dropdown)  
[https://www.wix.com/corvid/forum/community-discussion/dependant-dropdowns](https://www.wix.com/corvid/forum/community-discussion/dependant-dropdowns)  
[https://www.wix.com/corvid/forum/community-discussion/dependent-drop-down-lists](https://www.wix.com/corvid/forum/community-discussion/dependent-drop-down-lists)  
[https://codequeen.wixsite.com/dropdown](https://codequeen.wixsite.com/dropdown) (YouTube Walkthrough [here](https://www.youtube.com/watch?v=EhXed0u6wh0&feature=youtu.be) )

Have a read of this page here.  
[https://support.wix.com/en/article/corvid-tutorial-adding-collection-data-search-functionality](https://support.wix.com/en/article/corvid-tutorial-adding-collection-data-search-functionality)

This previous forum post might be helpful too.  
[https://www.wix.com/corvid/forum/community-discussion/autocomplete-dropdown-search-function-on-wix-site](https://www.wix.com/corvid/forum/community-discussion/autocomplete-dropdown-search-function-on-wix-site)

---

<div class="post-metadata">

**Author:** ![tydinjarman](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tydinjarman/32/20906_2.png) [@tydinjarman](https://forum.wixstudio.com/u/tydinjarman)\
**Post date:** [June 22, 2020, 4:58pm UTC](https://forum.wixstudio.com/t/use-corvid-to-populate-a-custom-element/32556/8 "2020-06-22T16:58:00Z")

</div>

Thank you so much for the advice, going to try the repeater solution. I did try building a custom element, the problem was that it timed out bundling the dropdown because of the number of elements. Did not find a way to have the source data come from a wix collection
