Multiple choices (checkboxes) in LuCI JS

Hi
Probably a silly question, but what control in LuCI JS allows the user to have multiple choices? I am trying to save the band selection in a user friendly way but I have no idea how this can be done "nicely" in LuCI JS.

Thanks for all the tips.

1 Like

Best is to use a form.MultiValue widget. In a rendered form it will look like this:

Backing code:

1 Like

I have one more question.
Can I save the data selected in form.MultiValue using the handleSaveApply / handleSave buttons? I wanted to save some values and then execute a script that uses those data as arguments.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.