Scrolling Checklist

Hi everyone and wix team,

can we add dynamic number of checkboxes using the code .
example suppose i have records from the query now i want to display 10 check boxes using loop . can it be done ?

i am trying to achieve this fix container box with scroll checkbox


https://www.w3schools.com/code/tryit.asp?filename=FJV8MG6JEF84
the scrolling check list would be very helpful for different purpose .

if u can add this as a option under “user input” i guess it would be very useful for all like checkbox dropdown .

<html>
<head>
<style>
 .container { border:2px solid #ccc; width:300px; height: 100px; overflow-y: scroll; }
</style>
</head>
<div class="container">
<div id="hello">
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
    <input type="checkbox" /> This is checkbox <br />
</div>
</div>
</html>

can we add dynamic number of checkboxes ?

Thanks for the help
regards
Jap

Thanks Japinder for the good suggestion. A dynamic number of checkboxes is indeed something we’d like to implement at some point in the future, but it’s not available at the moment.

A scrolling box is also not something you can currently achieve using components from the “add” menu.
If this is a huge issue for your site design you could consider using the HTML component. It would give you the scroll effect but be harder to design and code against.

Some references:
HTML component
In case you need to write Wix Code JavaScript which communicates with it: https://www.wix.com/code/reference/$w.HtmlComponent.html

@uval-blumenfeld-wix - It would be a huge addition to the Wix editor to add a scrollable box/container that users can add elements to. That way, Wix sites can have mini sections that have additional info.