I'm new to PowerApps.
Is it possible to display a given rating on a rating scale and an input text after clicking on a button on the same page?
Is it also possible to display the average of the ratings on another page?
It would be great if you could help me.
Many thanks in advance!
Yes, all of these things are possible. If you would like help implementing this you should provide specific details of your issue to allow the community to respond with a helpful answer.
As you can see in the picture, I have a rating system with stars and a text input field. After clicking the "+" button, the input text should be added to the screen with the given rating below the text field and can no longer be changed.
Does it help?
Put this code in the OnVisible property of your screen
Use this code in your TextInput for the following properties
DisplayMode: If(myScore=0,DisplayMode.Edit,DisplayMode.Disabled) Default: myScore
Use this code in your Add Icon for the following properties
DisplayMode: If(myScore=0,DisplayMode.Edit,DisplayMode.Disabled) OnSelect: Set(myScore,Rating1.Value)
Note: if you don't like how the controls look while disabled you can change how they look with the DisabledBorderColor, DisabledColor and DisabledFill properties.
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Unfortunately, that does´nt work. The input text, the rating and the "+" button contain a red "X". Nothing works in the "try-it-out" version
Please send a screenshot of your app where I can see the full workspace and another screenshot showing the complete error message. I tested this code on my side so it should work if we adapt it to your app.
Make sure you change the control references to match the names in your app.
Hi @Eileen ,
Firstly, could you tell me what is the separator in your region? is "," or ";"?
I notice that some place you use ",", while some you use ";".
If your separator is ",", you need to only use "," in a formula and use ";" to connect formulas.
If your separator is ";", you need to only use ";" in a formula and use ";;" to connect formulas.
Secondly, I've made a similar test for your reference:
1)set the screen's OnVisible:
2)set the add button's OnSelect:
Patch(...); //the formula that you save the data Set(whethersaved,false)
3)set the rating's DisplayMode:
set the testinput's DisplayMode:
Then after you update the value, rating and textinput will become no-editable.
If your separator is ";", you shoule try these formulas:
Patch(...);; //the formula that you save the data Set(whethersaved;false)
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!