In my form, I would like to auto compute the ‘food’ column values based on the ‘nutrition’ selection (enumlist). So if, ‘fruit’ is selected, then ‘food’ should have value ‘apple’. If both ‘fruit’ and ‘dairy’ are selected then ‘food’ value should be ‘apple, milk’
I’ve got this that works but seems klunky. IFS( AND( NOT(CONTAINS([Nutrition],"fruit")), (CONTAINS([Nutrition],"dairy")) ), "milk", AND( NOT(CONTAINS([Nutrition],"dairy")), (CONTAINS([Nutrition],"fruit")) ), "apple", AND( (CONTAINS([Nutrition],"fruit")), (CONTAINS([Nutrition],"dairy")) ), "apple, milk" )
I tried with IN() but it doesn’t pull up the correct values when both ‘fruit’ and ‘dairy’ are selected. IFS( IN("apple, milk",[Nutrition]), "fruit, dairy", IN("apple",[Nutrition]), "fruit", IN("milk",[Nutrition]), "dairy", )