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?  

Not applicable


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

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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