Not sure what you are trying to do, but you can only add one item to the list and that becomes the selected item. So ListBoxName.rawValue will give you the value they selected. If they did not select anything then the value will be null....which means they did not add an entry either.
Actually I have a form which has text fields, radio buttons and listboxes. At the end of the form I have a Print button which first checks the emtpy fields.
Everything is working great with the textfields (using the code listed above) but when trying to get checked the listbox value I can't do it using that code.
I want to know the best method in checking if a listbox has at least 1 element in it.
Same for the radio buttons - how can I check that at least one radio button has been selected.
Okay, it's working. Only if the user selects something in the listbox. For that matter - how can I select automatically always the first item in the listbox once something is dynamically added to the listbox?