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 / Rubric-Styled Grading App
Power Apps
Answered

Rubric-Styled Grading App

(0) ShareShare
ReportReport
Posted on by 45

Hello!

I'm new to PowerApps and I've been trying to create a Rubric grading app for auditing.

 

I want to create a horizontal radio button but would like to adjust the spacing between them, so I tried the horizontal gallery solution from this post: Solved: Horizontal Radio Spacing - Power Platform Community (microsoft.com)

  

Everything was going well, until I decided to add another gallery "row" and now both filled buttons seem to be in-sync. 

It's just the graphic from the button matches automatically, the value itself does change according to what is clicked. 

 

adrian_glz_0-1680720167435.png

 

 

I'm not entirely sure if the issue lies in this function in the OnSelect property: 

    UpdateContext({lclChoice:Self.Selected.Value})

 

or the Defaulty property from the Radio control

    lclChoice

Categories:
I have the same question (0)
  • ChrisMendoza Profile Picture
    425 on at

    @adrian_glz - using this structure:

    image.png

     

    Radio >
    OnSelect = Select(Parent)
    Default = ThisItemIsSelected
    Items = [ThisItem.Value]
    
    galHorizontal >
    OnSelect = If(Not(Self.IsSelected),Reset(Radio))
    Default = {}
    Items = [4,3,2,1]

     

    I wasn't sure if the Input was meant to be typed in to check the radio button so in my sample it is simply Default = galHorizontal.Selected.Value

    You should end up with something like:

    horizontal-radio-buttons.gif

  • adrian_glz Profile Picture
    45 on at

    Thank you for the response!

     

    I think I may be missing something. I placed the objects and input the functions to their respective properties as instructed.

     

    It seems I get an error on the Default parameter when I write ThisItemIsSelected as it appears it's not a valid name.

    adrian_glz_0-1680738838879.png

     

    Also, how did you manage to place the Label inside the gallery without having it repeat in all the columns?

    I'm also unsure on what to write on the Text parameter to reflect what is selected on the radio buttons, as I tried to reference both the gallery and the radio button but to no avail.

     

    BTW the dropdowns were totally unrelated. I just need simple horizontal galleries. Sorry about that.

  • Verified answer
    ChrisMendoza Profile Picture
    425 on at

    @adrian_glz -

    Radio >
    OnSelect = Select(Parent)
    Default = ThisItem.IsSelected
    Items = [ThisItem.Value]
    
    galHorizontal >
    /*THIS ISN'T NEEDED*** OnSelect = If(Not(Self.IsSelected),Reset(Radio)) ***THIS ISN'T NEEDED*/
    Default = {}
    Items = [4,3,2,1]

    I don't understand what you mean by "how did you manage to place the Label inside the gallery without having it repeat in all the columns?". It does repeat.

    "I'm also unsure on what to write on the Text parameter to reflect what is selected on the radio buttons, as I tried to reference both the gallery and the radio button but to no avail." Hopefully, this image helps you understand how this works:

    image.png

  • adrian_glz Profile Picture
    45 on at

    Nevermind about the Label I figured it out lol

    This worked like a charm! 

    Thank you so much! You're a life saver!

    adrian_glz_0-1680800718028.png

    Just a small issue which isn't really affecting how it works. Any idea why I get the following error for the OnSelect property for the rest of the Galleries?

    adrian_glz_1-1680800780631.png

     

  • ChrisMendoza Profile Picture
    425 on at

    @adrian_glz - You had made a comment about only needing a Horizontal Gallery however it still seems apparent to me that you also require a Vertical Gallery. I was able to quickly adapt the original solution I provided to match your expected output with no errors by using the first method suggested. 

    galVertical > Items = Sequence(5,1,1)

    In doing the above I get 5 vertical gallery records each with its own horizontal records.

    image.png

    The "grand total" can be written as:

    "Total = " & Sum(galVertical.AllItems,TextInput.Text)

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard