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 / (Solved) UpdateContext...
Power Apps
Unanswered

(Solved) UpdateContext - Updating two variables, one after another not working.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

On my Submit button, after patching I have variables set to reset the AddMedia control in my components.

The first variable works, and resets as intended, however my second one does not do anything. I've checked to make sure everything is correct in the component but I just want to confirm if this SHOULD work, if so then I am missing something, if not... I'm a bit confused.

 

 

UpdateContext({varResetControls:false});
UpdateContext({varResetControls:true});
UpdateContext({varResetControls2:false});
UpdateContext({varResetControls2:true});

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @Anonymous ,

    You are correct that it should work - not really a solution, but an alternative

    UpdateContext(
     {
     varResetControls: false,
     varResetControls2: false
     }
    );
    UpdateContext(
     {
     varResetControls: true,
     varResetControls2: true
     }
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Cheers, I missed adding the variable to the 'Screens' side for the component.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard