Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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?