Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

default and variables

kia ora


I have a form that displays currently selected item text as default (wanted)

Item (form) CurrentSelectedItem

Default (datacardvalue) setting parent.default

OnSelect opens a popup

OnSelect of the popup button it changes two variables UpdateContext({VAR_Status:"Pending", VAR_fill:Green})


I would like the default to be the 'CurrentSelectedItem' but on selecting a popup button the datacardvalue changes according to the value set by the button. I thought this would be a VAR_Status. But I cant seem to get these two working together


Is a 'variable' the right thing to use?


What am I missing here?  

Super User
Super User


You could set the Default to VAR_Status then OnVisible of the screen with the form set VAR_Status to the CurrentSelectedItem.statusColumnName.Text. That way when you change it with your button it will change.


If Status is a Choice or LookUp column this needs to be done differently.

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (4,150)