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 / Two of the fields not ...
Power Apps
Answered

Two of the fields not getting updated on Submitting the form

(0) ShareShare
ReportReport
Posted on by 697

Hello,

I'm using lookup function to update my A2 and A4 fields.

When entered value in A1, A2 gets auto populate.

When entered value in A3, A4 gets auto populate.

 

For A1 - OnChange below formula is added:

UpdateContext({var_employee: LookUp(SPListName,Title=Self.Text,ColumnName)})

 

For A2 - for Default below formula is added:

Coalesce(var_employee, Parent.Default)

 

But after submitting the form, A2 and A4 fields does not gets updated in form and SharePoint. It returns blank for both the fields.

Prem4253_0-1691495539273.png

 

Note: for lookup in A3 and A4, I've created a list to SharePoint.

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Prem4253 - in your Form, what do you have in the Update property of the DataCards (not the Data Card Value)

  • Prem4253 Profile Picture
    697 on at

    @Amik 

    Update property for A1 is A1.Text and A2.Text for A2

  • Prem4253 Profile Picture
    697 on at

    For OnSelect property of the Submit button I have added below code

    UpdateContext({var_employee: Blank()}); SubmitForm(Form3)

     

  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Prem4253 the code above is clearing var_employee prior to the SubmitForm function which is likely the cause for the blanks. I would move this line to the OnSuccess property of your Form.

    UpdateContext({var_employee: Blank()})

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

  • Prem4253 Profile Picture
    697 on at

    @Amik ,

    Thank you! this did the trick after updating the code to OnSuccess property.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard