(SOLVED)How to make a form with dropdown choice of two parameters with 0 and 1 values (yes & no) combined only to a choice of the name of the parameter and the other choice gets disabled (0).

(SOLVED)How to make a form with dropdown choice of two parameters with 0 and 1 values (yes & no) combined only to a choice of the name of the parameter and the other choice gets disabled (0).

e2000773
Enthusiast Enthusiast
206 Views
0 Replies
Message 1 of 1

(SOLVED)How to make a form with dropdown choice of two parameters with 0 and 1 values (yes & no) combined only to a choice of the name of the parameter and the other choice gets disabled (0).

e2000773
Enthusiast
Enthusiast

Beginner here. So yes I have two parameters called Left and Right. Both of them have 0(no) and 1 (yes). How do I make a form with a dropdown menu called "Direction" where if for an example I choose "Left" and then in the background the "Right" parameter is changed to 0 and the other way around?

I was thinking about a code like this to a rule, but couldn't make it work.

If Direction.Value = "Left" Then
Parameter("Left").Value = 1
Parameter("Right").Value = 0
Else If Direction.Value = "Right" Then
Parameter("Left").Value = 0
Parameter("Right").Value = 1
End If

How do I make this happen or am I already in the wrong direction?

Edit: Solved it myself. had to just leave Parameter("").Value out of everything and add unit to each line with a number.

 

0 Likes
207 Views
0 Replies
Replies (0)