I have a dropdown list in a form which is populated via a database.
The problem I have is that the current call is pulling back all of the distinct vlues from one column.
I need to work out a way to combine these into sections in the resulting drop down menu.
For example the current drop down is pulling back values such as the list below:
A150
A160
A170
A180
What I need is a code which will combine all of these values into one signle drop down option of for example “A Section”
Can anyone give me some pointers as to how I can do this?
there is a common pattern as in if the option starts with the letter A I want it to show “A Section” instead of all of the individual options.
Any help much appreciated.
Thanks in advance.