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

Dropdown menu selections canceling themselves out

Avatar

Avatar
Validate 10
Level 1
shawnFMU
Level 1

Like

1 like

Total Posts

38 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 1
shawnFMU
Level 1

Like

1 like

Total Posts

38 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
shawnFMU
Level 1

10-07-2018

Another dropdown issue. I have selection choice result canceling themselves out?

Is there a way to avoid this?

DD1 is the dropdown menu
TF(*) are just text fields

If(DD1.rawValue == "1")

{

TF1.presence = "visible"; TF2.presence = "visible"; TF3.presence = "visible";

}

else

{

TF1.presence = "hidden"; TF2.presence = "hidden"; TF3.presence = "hidden";

}

If(DD1.rawValue == "2")

{

TF2.presence = "visible"; TF3.presence = "visible"; TF4.presence = "visible";

}

else

{

TF2.presence = "hidden"; TF3.presence = "hidden"; TF4.presence = "hidden";

}

When I select "1" only TF1 shows

when I select "2" TF2, TF3, and TF4

For selection "1" TF2 and TF3 is being cancelled out? If so, then in selection "2", shouldn't only TF4 show up?

If there a solution here?

Thank you advance

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

10-07-2018

When I have done this type of thing I have found else scripts a little unreliable. The thing is, in this case it isnt needed at all, just put everything in the if statement. Hide and show objects in one place. It will work this way.

Eg

If(DD1.rawValue == "1") //when 1 is selected, show TF1, 2 and 3 but not 4

{

TF1.presence = "visible";

TF2.presence = "visible";

TF3.presence = "visible";

TF4.presence = "hidden";

}

If(DD1.rawValue == "2") //when 2 is selected, show TF2, 3 and 4 but not 1

{

TF1.presence = "hidden";

TF2.presence = "visible";

TF3.presence = "visible";

TF4.presence = "visible";

}

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

11-07-2018

Glad to assist.

Avatar

Avatar
Validate 10
Level 1
shawnFMU
Level 1

Like

1 like

Total Posts

38 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 1
shawnFMU
Level 1

Like

1 like

Total Posts

38 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
shawnFMU
Level 1

11-07-2018

Again Brilliant! This works for me!

Thank you!