cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

Default form based on a lookup

scren1.pngscren2.png

The first picture is my main form. The seconds function is for the user to sign in and sign out which going to the sign in datasource. I want the default value in the first card to be based on the persons yes/no . This is what I have so far for the default value LookUp('Sign In_1', 'Signed In?'= true, false && Email = vUserMail). The column for signed in and the first datasource is both yes/no. I know I am close, I just need to know how to default the signed in portion.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @powerapps890 ,

Do you want to set a toggle's Default based on current user?

Could you tell me

1)the data type of 'Signed In?' field?

2)the data type of Email field? how do you set varUserMail variable?

I assume that:

'Signed In?' data type is yes/no

Email is text type.

varUserMail is used formula like this to set: Set(varUserMail,User().Email)

 

To set a toggle's Default, you should use formula like this:

 LookUp('Sign In_1',Email = vUserMail).'Signed In?'

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @powerapps890 ,

Do you want to set a toggle's Default based on current user?

Could you tell me

1)the data type of 'Signed In?' field?

2)the data type of Email field? how do you set varUserMail variable?

I assume that:

'Signed In?' data type is yes/no

Email is text type.

varUserMail is used formula like this to set: Set(varUserMail,User().Email)

 

To set a toggle's Default, you should use formula like this:

 LookUp('Sign In_1',Email = vUserMail).'Signed In?'

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Users online (7,281)