cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JBennett12
Resolver I
Resolver I

How to pass a value from a radio button to a text label on another screen?

I come from a programming background so I feel this should be an easy answer. I have a form with radio buttons that submit the selections to a sharepoint list. My question is, I want to average up the selections from the radio buttons up and display the average on a seperate screen. In I'm assuming would be a text label. Is this the right way? Or is it possible to pass values to a seperate screen?

 

In my text label where I'm trying to pass the values I have, 

 

Average(Radio1.Selected.Value, Radio2.Selected.Value...RadioN.Selected.Value)

1 ACCEPTED SOLUTION

Accepted Solutions
JBennett12
Resolver I
Resolver I

I was able to fix it, I had to move the average function in front of the submitForm function in the on select function

View solution in original post

7 REPLIES 7
RandyHayes
Super User
Super User

@JBennett12 

Programming not so helpful experience, more of Excel formula building that is helpful!

 

All your controls are global in the app, so you can access them from any screen.  You don't need to pass it to the screen.

 

So, with the formula you have for your text label, what is the issue?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
NandiniBhagya20
Solution Sage
Solution Sage

Hi,
You can use Set function to save value to a variable - Set(varTotal, "Hello") on a button click that is used to navigate from one screen to other screen. https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-variables Here is the link for your reference 


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

The issue is that nothing is showing up in the text label.

RandyHayes
Super User
Super User

@JBennett12 

Have you submitted the form that contains the Radio Controls?  If so, then depending on the default mode of the form and any other functions (such as NewForm) that you might issue, the Radio controls may not have the value on them any longer.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
NandiniBhagya20
Solution Sage
Solution Sage

Hi You can use OnChange property of radio buttons - 
OnChange property you can set variable - Set(varAvg, Average(Radio1.Selected.Value, Radio2.Selected.Value))


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

I have the DefaultMode set to New with every submission. 

JBennett12
Resolver I
Resolver I

I was able to fix it, I had to move the average function in front of the submitForm function in the on select function

Helpful resources

Announcements
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 (3,126)