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 / LookUp and OnChange
Power Apps
Answered

LookUp and OnChange

(0) ShareShare
ReportReport
Posted on by 728

On my form, when opened as NewForm, I have a dropdown that is a lookup field  in my sharepoint list, when an option is selected, i have a textinput field which will populate specific data that is related to the chosen item in dropdown:

 

neill_long_0-1673524263452.png

C Code is selected and Care is displayed in the Subject Name (which is view only field).

 

When the form is opened in Edit mode, i want it to display the saved data so in example above it would display 'Care', but if the C Code was to change, then I would like the Subject Name to change as well, but i am struggling to get this to work.

 

On the Default property of the Subject_Name datacard I have:

 

If(Form1.Mode = New, LookUp(LDR_SQA_Exam_Dates, C_Code = DataCardValue1.Selected.Value, Subject_Name), ThisItem.Subject_Name)

 

On the Default property of the TextInput, I have:

Parent.Default

 

How can I amend this so that it displays the saved Subject_Name but if the C Code dropdown changes, the Subject_Name field will update and save the new data when submitted?

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

     @neill_long ,

     

    If you want the subject name field to always follow the selection of DataCardValue1, regardless of the FormMode, just simplify to:

    LookUp(LDR_SQA_Exam_Dates, C_Code = DataCardValue1.Selected.Value, Subject_Name)

     

  • neill_long Profile Picture
    728 on at

    @BCBuizer 

     

    thanks, I think I'm just over-thinking things

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard