This button allows a user to select all choices from a multi-select listbox or dialog list. You may need this when there are a lot of choices to select, and most of them should generally be selected.
Create the button with the following code, where listfield is the name of the list item:
var form = this.form
for (var i = 0; i < form.listfield.length; i++)
{ form.listfield.options
[i].selected = true }
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip exchange by member Becky Taylor. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.