Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Lookup and show choices using in EditForm for New

(0) ShareShare
ReportReport
Posted on by 438

Look up the Head Sponsor, Sponsor 1, and Sponsor 2 associated with the current user, then match them in the 'L-grade.' Afterward, look up the 'Class of 20XX Fundraising Items' to find the 'L-grade' and display the corresponding grade level based on the matched user.

Screenshot 2023-12-13 at 8.18.45 PM.png

  • dylandavis09 Profile Picture
    438 on at
    Re: Lookup and show choices using in EditForm for New

    I just found it out and fixed, and worked again. I have same the datasource is 'Class of 20XX Officers' instead of 'Class of 20XX Fundraising Items'. 🙂

  • v-yueyun-msft Profile Picture
    on at
    Re: Lookup and show choices using in EditForm for New

    Hi , @dylandavis09 

    What is your Form Mode in your side ?

    You can try to use the NewForm(FormName) in your Button-OnSelect to test?

     

    Best Regards,

    Yueyun Zhang

  • dylandavis09 Profile Picture
    438 on at
    Re: Lookup and show choices using in EditForm for New

    @v-yueyun-msft Few minutes, now it's not show anymore. 😞

  • dylandavis09 Profile Picture
    438 on at
    Re: Lookup and show choices using in EditForm for New

    Success! I put in theDefaultSelectedItems. It's worked.

  • Verified answer
    v-yueyun-msft Profile Picture
    on at
    Re: Lookup and show choices using in EditForm for New

    Hi , @dylandavis09 

    Dose the control is a Combo box Control?

    If this , you can put it in the DefaultSelectedItems :

     

    LookUp('Class of 20XX Fundraising Items', 'L-Grade'.Value = 
    LookUp(
    'Class of 20XX (Officers)' , ('Head Sponsor'=User().FullName || 'Sponsor 1' = User().FullName || 'Sponsor 2'=User().FullName)
    ).'L-Grade'.Value).'L-Grade'

     

     

    If the Control is a DropDown , you need put this code in the "Default" property:

    LookUp('Class of 20XX Fundraising Items', 'L-Grade'.Value = 
    LookUp(
    'Class of 20XX (Officers)' , ('Head Sponsor'=User().FullName || 'Sponsor 1' = User().FullName || 'Sponsor 2'=User().FullName)
    ).'L-Grade'.Value).'L-Grade'.Value

     

     

    Best Regards,

    Yueyun Zhang

  • dylandavis09 Profile Picture
    438 on at
    Re: Lookup and show choices using in EditForm for New

    Which one, we supposed to be in property? I just added in Defaults.

     

    Screenshot 2023-12-13 at 9.15.13 PM.png

     

    My name is already in the list and linked with L-Grade: (see below)

    Screenshot 2023-12-13 at 9.16.40 PM.png

  • v-yueyun-msft Profile Picture
    on at
    Re: Lookup and show choices using in EditForm for New

    Hi , @dylandavis09 

    Can you try to use this code :

    LookUp('Class of 20XX Fundraising Items', 'L-Grade'.Value = 
    LookUp(
    'Class of 20XX (Officers)' , ('Head Sponsor'=User().FullName || 'Sponsor 1' = User().FullName || 'Sponsor 2'=User().FullName)
    ).'L-Grade'.Value)

     

    Best Regards,

    Yueyun Zhang

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard