valid if - Not able to edit and save the form

Hi ,

I have used to valid if expression to avoid duplicates in the same column. which has created one more issue that it is allowing to create new entries but when the old entry form is edited and save button is hit, It does not allows to save it and displays valid if error . How to solve this ?

Valid if expression : NOT(IN([_THIS], SELECT(USER ROLE[USER ROLE],TRUE)))

jaichith_0-1715001911010.pngjaichith_1-1715001972127.png

 

Solved Solved
0 18 723
2 ACCEPTED SOLUTIONS

This is the valid if for [num_col] which is a simple number column in Table T3.

TeeSee1_0-1715037347054.png

I have three rows with 2, 3, 4 in their respective [num_col] to start with.

TeeSee1_4-1715037731710.png

cannot create a new row with 2 in [num_col]

TeeSee1_5-1715037767093.png

With 1 (no duplicates) , it works.

TeeSee1_6-1715037782358.png

new row created.

TeeSee1_7-1715037802746.png

I can edit it and save it

TeeSee1_8-1715037844251.png

Result.

TeeSee1_9-1715037862403.png

Somehow you have different conditions than I have.

 

 

View solution in original post

FINALLY THIS WORKS FOR ME .

NOT(
     IN([_THIS], SELECT(USER ROLE[USER ROLE],[_RowNumber]<>[_THISROW].[_RowNumber]))
)

BASED ON YOUR WORK @TeeSee1 .

1. TO EXCLUDE CURRENT COLUMN/CELL  VALUES I HAVE REFERRED  ROWNUMBER <> [THISROW].[ROWNUMBER] IN SELECT() FUNCTION.  

THE EXPRESSION IS IN TESTING LET SEE HOW IT WORKS. 

THIS IS COMPLETELY BECAUSE OF YOU @TeeSee1 . THANK YOU

 

View solution in original post

18 REPLIES 18
Top Labels in this Space