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 84
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

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",
  ""
)

Remove the highlighted portion of your expression.
3X_9_b_9b530cbce53cc6a5d335731b0a8b813140c28ecd.png

I was close . Thanks @Aurelien, @Marc_Dillon !

Top Labels in this Space