Can someone help

I have a this situation
Column 1 is Enum Type
Column 2 is email type

(Column 1 Enum Values)
A
B
C
D

If ( C ) is selected Then I need Column 2 to be filed automatically with Useremail()

0 16 247
  • UX
16 REPLIES 16

I would use the below:

IF ( [Column 1] = โ€œCโ€ , USEREMAIL() , " " )

i got this error

Column Name โ€˜Column 2โ€™ in Schema โ€˜S_Req_Schemaโ€™ of Column Type โ€˜Emailโ€™ has an invalid data validation constraint โ€˜=ifs( [Column 1]=โ€œCโ€, USERNAME() )โ€™.

Remove the โ€œSโ€ from IFS, and provide the Else condition.

Yes/No Expressions | AppSheet Help Center.

This:

ifs( [Column 1]=โ€œCโ€, USERNAME() )

is perfectly suitable.

is there a way to assign that usename() in other table [column]

Yes.

the other table name (S_Req_close) the column is [use_name]

Can you show how to do it

Or give example

Please describe what you want to do in a little more detail.

I hope the following figure illustrates the idea

3X_6_d_6dc7d770bfe6f687b19264a83b6dca8b9af24a45.png

Set the Initial value expression for the First User email column of the S_Req_close table to:

[Req No].[First User email]

See also:

I did not know this was possible , for some reason I though IFS always required multiple conditions!

If I had knew this, I would have saved lots of time in different occasions. Well, I have learnt something new today!

Put this expression in the columnโ€™s Initial value rather than in Valid If.

The expression works only in (App formula)

and it works fine

ูAlso i need the Condition to work in (add and edit)

Table: Users

User_name User_email
Oliver Oliver1111@gmail.com
Khalid Khalid2341@gmail.com
Yaom Yaom2211@gmail.com

Table: S_Req

Req_id First_user_name Entery_Date Offer_Status Last_user_name End_date
3d3464fe Oliver 12-4-2021 available
75920828 Yaom 15-4-2021 In negotiation Khalid 19-4-2021

Req_id UNIQUEID()

First_user_name SELECT( Users[User_name],([User_email] = useremail() ))

Entery_Date Today()

Offer_Status ENUM

Last_user_name ifs([Offer_Status]=" In negotiation",SELECT(Users[User_name],([User_email] = useremail() )))

End_date Today()

I need to have condition in the Slices on table (S_Req) to show only if

  • [Offer_Status] = โ€œIn negotiationโ€
  • Email of [Last_user_name] = useremail() ??? I need it to chick the email from the table Users because Iโ€™m having name in the field [Last Username] not an Email
Top Labels in this Space