Form Field Validation Rule Multiple conditions

thraling

Registered User.
Local time
Today, 01:01
Joined
Mar 17, 2016
Messages
10
Hello,

I have 2 fields in a form:
[Plan to fill] = can be whatever
[Source] = It has to have a value, unless [Plan to fill]="TBD", then it has to be empty.

Validation rule in [Source]:
([Source]<>"") Or ([Plan to fill]="TBD" And [Source]="")
It doesn't work. Not even with tricks like Len, Trim, etc.

If I put:
([Source]<>"") Or ([Plan to fill]="TBD")
it works, but, of course, I lose the condition (If "TBD" Then [Source]="").

If I put even:
([Source]<>"") Or ([Plan to fill]="TBD" And True)
That should be the same as above, doesn't work again anymore.

What am I missing?
 
(Trim([Source] & "")<>"" And Trim([Plann to fill] & "")<> "TBD") Or (Trim([Source] & "")="" And Trim([Plan to fill] & "")="TBD")
 
(Trim([Source] & "")<>"" And Trim([Plann to fill] & "")<> "TBD") Or (Trim([Source] & "")="" And Trim([Plan to fill] & "")="TBD")

Your magic worked!
Thanks!
 
you're welcome and goodluck!
 

Users who are viewing this thread

Back
Top Bottom