Disabling Selected Option from One Enum List In Another

Hi everyone,

Iโ€™m pretty new to Appsheet and Iโ€™ve been making great strides so far with the available resources. I am currently trying to create two ENUM fields that will populate two columns of data; โ€œSourceโ€ and โ€œDestinationโ€.

The options in both will be similar; A,B,C,Dโ€ฆand so forth. I would like to have the option selected in the โ€œSourceโ€ field disabled in the โ€œDestinationโ€ field and vice versa.

I.e. If option โ€œAโ€ is selected in the โ€œSourceโ€ field, then the available options in the โ€œDestinationโ€ field should be โ€œB,C,Dโ€ฆโ€. Basically everything except what was selected in the โ€œSourceโ€ field.

I want this to work both ways, i.e. the user can start by selecting an option for either the โ€œsourceโ€ or โ€œdestinationโ€ and the alternate field will automatically limit the options available based on the users initial selection.

Lastly, I am using a stacked input mode so I would like the disabled option to be visible to the user, but for them to be unable to select it.

Any help would be greatly appreciated. Thanks in advance.

Solved Solved
1 5 668
1 ACCEPTED SOLUTION

Try:

Table1[Transfers] - LIST([Destination])

And:

Table1[Transfers] - LIST[Source])

View solution in original post

5 REPLIES 5

Steve
Platinum 4
Platinum 4

Thanks!

I think thereโ€™s something I am failing to do. I have used the syntax;

Table1[Transfers] - [Destination] to get the enum options for โ€œSourceโ€

and

Table1[Transfers] - [Source] to get the enum options for the โ€œDestinationโ€

Yet I am still able to select the same option for โ€œSourceโ€ and โ€œDestinationโ€ which is what I want to have dynamically disabled based on what is selected in either field. I.e. โ€œSourceโ€ and โ€œDestinationโ€ cannot be the same.

If it offers any clarification, both fields are set to enum and are pulling values from the same range in the source data.

Try:

Table1[Transfers] - LIST([Destination])

And:

Table1[Transfers] - LIST[Source])

It works, thanks a bunch.

Top Labels in this Space