That's interesting and not something I've ever noticed before, probably because I rarely use list boxes. I get zero length strings when no item is selected for both the value and default value, and the field isn't included when the form data is exported. When the field is reset, it does revert back to no items being selected. To reset, use the resetForm mothed, not what you showed above.
Thanks George--I appreciate the reply.
I had forgotten about resetForm and passing in an array--thanks for the suggestion.
Ijust tried and unfortunately the resetForm method does make a default selection in the listbox. Are you seeing otherwise?
When a list-box is reset it doesn't return to the state where no items are
selected, but to the selection of the default value.
The default value is the item that is very lightly highlighted when you
switch to the Options tab in the Properties window of the field.
I find this method of selecting a default value very inconvenient because
it's very easy to change the selection by accident.
AFAIK, if the field has items in it it's not possible to return to the
state where nothing is selected at all.
>>When a list-box is reset it doesn't return to the state where no items are selected, but to the selection of the default value.
This is what I see too, except for one case where no default item is selected in the field options gui. I was hoping this technique would get me where I want to go--as you can see no item is selected as the default:
>>AFAIK, if the field has items in it it's not possible to return to the state where nothing is selected at all.
I'm slowly reaching (reached?) this conclusion as well. Thanks for your comments and help.
Good gosh, you're right! I was still using my manual reset which repopulated the list box rather than calling resetForm(['listBox']);
Thanks much George--you checking it out made me take a 2nd look and now we have a winner.
Have a good weekend