Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Help with Arrays

Avatar

Level 3

This is my array,

 

switch(this.rawValue) {

       case "1":

               olpDocSub.addItem(Trampoline:);

default:

               olpDobSub.addItem(Please choose item.");

               break;

 

I would like case one to include:

 

If the User selects yes to the color red, then Michael Johnson display in the approver field

If the User selects no, nothing is displayed in the approver field.

 

Thanks in advance for your help.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Well, your script doesn't work. It's not an array but an incomplete switch statement (see https://www.w3schools.com/js/js_switch.asp).

What kind of field is olpDobSub and the one your executing the script on?

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Well, your script doesn't work. It's not an array but an incomplete switch statement (see https://www.w3schools.com/js/js_switch.asp).

What kind of field is olpDobSub and the one your executing the script on?