Valid if Expresions to Email Password Log In

Hi,

Have a form to enter Email and Password. Users have previously registered in another form entering [User Email] and [Password]. The Data Table is Users.

Now i have a View Form Log In, where the user is asked for [Email] and [Password].

I wanted to check that the Email entered is Valid, to be valid it must be in the Users Table.

3X_1_3_13dd3de53214201c5c97315f4f152cd0dfd689ac.png

The expression for Email is Working.

The second validation will be the password based on the Email entered.

Tried the expression above which shows to be valid but is not working.

Solved Solved
0 5 280
1 ACCEPTED SOLUTION

Tried this:

In the Invalid VAlue Error Message and it works.


View solution in original post

5 REPLIES 5

Steve
Platinum 4
Platinum 4

ISBLANK([_THIS]) in both Valid If expressions is pointless: Valid If is not used if the column value is blank.

In the Valid If for password, remove the [_THIS]=[_THISROW].[password] expression.

But if i donโ€™t use the ISBLANK the text box does not show. Maybe because when you open the form [_THIS] is blank and in consequence there will not be any User with a blank Email in the IN() Expression.

Ah, right. Itโ€™s because a Valid If expression containing just an IN() expression produces magic behavior, and you have to work around that magic. I suggest using FALSE rather than ISBLANK([_THIS]), if just to avoid any confusion that ISBLANK() is material. Or leave ISBLANK() as it was. Whatever the case, this doesnโ€™t contribute to the problem validating the password.

Did this.

Tried this:

In the Invalid VAlue Error Message and it works.


Top Labels in this Space