combobox default value

Is there the possibility to set each combobox with attached a valuelist to display as default value a not blank value but the first item in the valuelist?
Something like the style “dropdown list” in VB…

Otherwise I have to validate not blank fields every time on save…

A field style property could be very useful, you don’t think so?

You can do this already but need to do a little programming:

  1. onShow of the form check the dataprovider value is empty
  2. if so, find the first value of the valuelist
  3. add that value to the dataprovider

I know, there should be an easier way (setValueIndex) or something like that but this will do the job for you…

thanks marcel, but I know that I can do that via scripting, I simply hope there’s another way via a property :(

You could always set the default value in the Data Providers dialog by assigning a Custom value.

No scripts involved.