cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
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
v-yutliu-msft
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
v-yutliu-msft
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,717)