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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / On Change property query
Power Apps
Unanswered

On Change property query

(0) ShareShare
ReportReport
Posted on by 183

Hello All,

 

wanted some clarity on On Change property in a form control.

 

I have a data card value where the users would input a unique value pertaining to an employee. There are 5 more corresponding columns that currently the user inputs.

 

I have a database of that information in a SharePoint list and based on the input in the first data card (unique value), I would want the other few fields to update the details from database. 

I tried the lookup formula in the on change property of the 2nd data card value, but have no luck. I also tried this in other data cards value box. 

Request you to help.

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    HI @sankhlay,

    OnChange property only supports behaviour function like Patch(), Set(), Navigate(), LookUp() is non-behaviour function.

     

    You need to set the OnChange property of the first data card value as a variable:

     

    Set(varItem,LookUp())

     

    Then assign the specific field of the record from the varItem, set the Default property of other datacardvalue as varItem.FieldName.

  • sankhlay Profile Picture
    183 on at

    thank you for your response. Let me try this and share my results with you 

  • Chris-D Profile Picture
    1,246 on at

    If you then want to prevent the user from modifying these fields, you can either set the DisplayMode to Displaymode.Disabled or put a transparent rectangle over the text box. 

  • cdwhite Profile Picture
    1,067 Most Valuable Professional on at

    Hi @sankhlay ,

    Please try the lookup formula in the Default property of the 2nd datacard.
    The OnChange property will only trigger if the user physically changes the values in DataCard2 or onwards.

    ------------------------------------------------------------------------------------------------------------------------------
    If I've answered your question, please mark your post as Solved. You can accept more than one post as a solution.

    If my response was a good one, please give it a Thumbs Up!

    Visit my blog: https://platformsofpower.net

  • sankhlay Profile Picture
    183 on at

    Thank you very much for all your help. I was able to work with the variable. 

  • sankhlay Profile Picture
    183 on at

    I had one more question. I have a couple of choice columns; I am unable to update them based on the default property.

     

    I used VarItem.WorkLocation

  • Chris-D Profile Picture
    1,246 on at

    Choice columns are actually single column collections with one item. 

    Try:

    { Value: VarItem.WorkLocation}
  • sankhlay Profile Picture
    183 on at

    I tried with default as well as the Items property, did not work. 

  • sankhlay Profile Picture
    183 on at
    @Chris-D - Am I missing anything on this.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard