Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Headers in Dropdown lists? (Non-selectable items)

Avatar

03-10-2008

Does any one know how to make headers in dropdown lists? I have 2 groups of items I want to add a header for each in the dropdown list. The headers just have to be non selectable.



thanks,

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

03-10-2008

I do not believe that we support that feature.

Avatar

03-10-2008

Is there a way to change the background color of certain items so it looks visually different? or make the font color?



Thanks,

Avatar

03-10-2008

Hi Kris,



In Designer 7.1, I created a DropDown List which includes Headers and sub categories under these headers, where the Headers are not selectable. When I built my DropDownList I then assigned Values to each item in the list, which I've put in brackets for you:



HEADER ONE (10)

Item A (1)

Item B (2)

Item C (3)

HEADER TWO (11)

Item X (4)

Item Y (5)

Item Z (6)



This is the JavaScript I wrote on the Exit event:



if (DropDownList.rawValue > 10) {

DropDownList.rawValue = "";

}



Hopes this works for you.

Avatar

04-10-2008

Hi Helen,



I see what you mean. You made no action to them right? Do you know of a way to formath them differently? bold the header, change the background color, etc.?



Thank you,

Avatar

04-10-2008

Hi Kris, correct, there is no action on the Headers with a value of 10 or higher. I've tried a number of things, but it appears you cannot format them (bold, color, etc.). That is why I put my Headers in all caps, and then under the list I added a couple of spaces before each item to make it appear as a list. I even used dashes in front of the items (- Row A, - Row B, etc.) and then on a change event had in change to Row A, Row B, etc.