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

Help with Arrays

Avatar

Avatar
Validate 1
Level 1
Yvette_s_Channe
Level 1

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Yvette_s_Channe
Level 1

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Yvette_s_Channe
Level 1

06-05-2021

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

395 likes

Total Posts

2,686 posts

Correct Reply

491 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

395 likes

Total Posts

2,686 posts

Correct Reply

491 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

10-05-2021

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?