Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Drop-Down List Format Change

Avatar

Level 2

Hello,

I needed some help trying to costomize a drop down window.

I wanted to make a format that wold help the user in choosing one of these items.

Out of the following options in the dropdown:

Knife, Pot, Cutting Board, Mower, Weed Eater, Edger

I wanted to organize them like so in the dropdown:


Kitchen

Knife

Pot

Cutting Board

Yard

Mower

Weed Eater

Edger

so that the six items within the categories are the only items to choose from the list.

I have a test file with this information that I can send via e-mail

Thanks

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

The DropDown list object does not suppoprt that type of categorization of items.

Paul

View solution in original post

6 Replies

Avatar

Correct answer by
Former Community Member

The DropDown list object does not suppoprt that type of categorization of items.

Paul

Avatar

Level 2

thanks for the help Paul

thats unfortunate though

Avatar

Former Community Member

Could you have three drop downs?  One with Kitchen and Yard and one of the others with the Kitchen stuff and the other with the Yard?  I would expect you would have them invisible until the first choice is made then "visible" up the appropriate object.

Avatar

Level 2

I could not figure out how to make it invisible.  Could you send me an example please?

Avatar

Former Community Member

WVSWEW.WEWsubform.MonthYear::change - (JavaScript, client)
//xfa.host.messageBox("changed the value in the Month/Year Field")
xfa.resolveNode("RecalcBtn").presence = "visible";

When this object is changed, the button is made visible.

WVSWEW.WEWsubform.MonthYear::change - (JavaScript, client)
//xfa.host.messageBox("changed the value in the Month/Year Field")
xfa.resolveNode("RecalcBtn").presence = "visible";

WVSWEW.WEWsubform.RecalcBtn::click - (JavaScript, client)
xfa.resolveNode("RecalcBtn").presence = "invisible";

When the button is clicked, it is made invisible.  Note that due to lazyness, I resolved the button here.  I could have used:

$.presence = "invisible";

using the self reference.  But you aren't doing that so I left it the long way.

Avatar

Level 2

Thats a pretty neat trick.

I appreciate your help Jerry

-Alex

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----