Initial value expression

Hi all, in a form, I have a column [Exclusivity duration] type Enum with 3 options as below

I want to put an expression that if [status] (in the same table) = A or= B or= C than [Exclusivity duration] will be “Always”, if not , user can choose “6 months” or “No exclusivity”. I try this expression but not work

IF(OR([Status]=“A”,[Status]=“B”,[Status]=“C”),[Exclusivity duration]=“Always”,"")

Thanks

Solved Solved
0 3 125
1 ACCEPTED SOLUTION

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Phong_Lam

In the Valid_If of the column [Exclusivity duration]:

IF(
  OR([Status]="A",
    [Status]="B",
    [Status]="C"
  ),
  LIST("Always"),
  LIST("6 months","No exclusivity")
)

In the Initial_Value:

IF(
  OR([Status]="A",
    [Status]="B",
    [Status]="C"
  ),
  "Always",
  ""
)

View solution in original post

3 REPLIES 3
Top Labels in this Space