web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Default form based on ...
Power Apps
Answered

Default form based on a lookup

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

Categories:
I have the same question (0)
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard