Hi,
Iโm new with Appsheet and I would like to know how to use the DropDown list with an IF statement.
That Iโm trying to do is:
Exercise 1:
If value โAโ is 1, then show me this dropdown list
If value โAโ is 2, then show me this dropdown list
Exercise 2:
If value โAโ is 1, then show me this dropdown list
If value โAโ is 2, then show me this dropdown list
Someone can help me?
Thanks in advance,
Try this to start with
Hi,
Iโve tried and first exercise is ok but when I try to do the same with the second exercise, I canโt chose the value โAโ from the dropdown list, it appears the same value that Iโve chosen on the exercise 1.
Please, find attached a screenshot from my screen.
I canโt chose SC, Stretching or Mobility but I donโt know where is the issue. I used the dependent dropdown list. Maybe is because I used the same expression on the exercise 1 and exercise 2?
That seems to be the problem but itโs not actually accurate neither.
Post your config and we will be able to help you with that.
Make sure you havenโt made the second exercise dependent from the first one, since thatโs not what you need.
Make sure you havenโt made the second exercise dependent from the first one, since thatโs not what you need โ yes, I did that. What Iโve to do then if I want to have another dropdown list from the same values I had on the exercise 1?
Post your config and we will be able to help you with that. โ How can I share my configuration?
Thanks,
Just make dependent the columns that need to listen to other ones in order to show โfiltered optionsโ.
Since you need to always show the 3 exercise options you mentioned, just leave those exercise columns as enum with no other arguments.
By โpost your configโ I mean show us a screenshot of the configuration, showing the expressions you are using
Please, find attached the 6 steps I did.
Iโve tried to remove the first step: exercises[workout focus] and Iโve created an enum list with the 3 values but it doesnโt work, the next row doesnโt recognize the 3 values to create a dependent dropdown.
As far as I can see, Workout Focus doesnโt need any Valid If expression, just make it Enum type with the 3 options. Jount Focus is the one that needs the valid if. Also, I see you are using Valid_If to create a dropdown list, making AppSheet to do itโs magic in order to make the dependent dropdown, but since you have more than one in your form, I encourage you to do it manually instead of relly on automatic behaviour.
Iโm sorry if Iโm not giving you a copy and paste solution but I feel I would be doing no good for you with such kind of help.
I just would want to point you to make a suggested values expression instead of Valid_If since you will be giving the user just the options that are computed via buttons and the user wonโt add values anyway. You could also refine it using Show_If expressions, but thatโs another item by itโs own.
In summary, I would make the first column an enum type with the 3 options that you have or making it dynamically using Suggested Values (UNIQUE(Exercises[Exercise]) so that the options will grow as you add more exercises. Then make another Suggested Values Expression to create the options for โWorkout focusโ dependent from the value thatโs inside [_THISROW].[E1]
Thatโs my opinion, generally there are more than just one way of doing things in AppSheet
PS: Could you please show us your Exercises table schema?
Please find the schema of Exercises table
Thanks for your help. Iโm reading all the links that you gave me but for the moment I canโt manage to create the correct dropdown list for the Exercise 2.
There's a way, just write you formula in "Initial Value" and you can edit your dropdown list anytime.
User | Count |
---|---|
40 | |
34 | |
29 | |
23 | |
17 |