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 / Radio button display n...
Power Apps
Answered

Radio button display name and value

(0) ShareShare
ReportReport
Posted on by 127

I am not sure if this is possible, but can we have a display text for a radio button and a value? For example the display text for an option to be: "Hello world" but the value when selected = true? I am not finding anything in the documentation that refers to this. 
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-radio

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    You can use a workaround logic like;

    If ( Radio1.Selected.Value="Hello World",true,false)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@BrittanyR,

    Based on the issue that you mentioned, do you want to display a text like "Hello World" when you on selecting the Radio button options?

    Could you please share a bit more about the scenario, do you want to set the boolean values for the Radion button options?

    If my understanding is correct, I am afraid that there is no way to achieve this currently in PowerApps.

    You want to set two options like true or false for the Radio button. Further, when you select the true option, the Radio button should display "Hello World" rather than "true". The Radio button does have the display text, but it displays only depends on the Items property you set for it. If you set the Items as a Table containing items like "true" or "false", the Radio button only displays the corresponding item to what you select.

    As an alternative solution, if you want to display a custom text when the Radio button selected value is "true", I think controlling the Visible property of a Label could achieve your needs.

    I have a test on my side, please take a try as below:

    Set the Items property of the Radio button as below:

     

    ["true","false"]

     

    Add a Label and set the Text property as below:

     

    "Hello World"

     

    Set the Visible property of the Label as below:

     

    If(Radio1.Selected.Value="true",true,false)

    Note: Every time you select the true option, the Label will pop up to display the "Hello World".

     

    If this could not solve your problem, please provide more details.

    Best Regards,

    Qi

  • BrittanyR Profile Picture
    127 on at

    @v-qiaqi-msft  no, I want to do like a text/value for the radio button, in that the first option says "Hello world" but when selected its inner value = 1, second option = "Hello world 2" but when selected value = 2. 

  • eka24 Profile Picture
    20,925 on at

    Can you explain further the inner value?

    Possible a screenshot will help.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is pretty simple using the Table function for the Radio button's Items property. 

     

    Table({Key: "Hello World", Value:1},{Key: "Good By World", Value:2})

     

    This will result in the Radio button selected value being a record. This means you can use the Radio button's Selected property to define the value you have assigned in the table.

     

    Radio1.Selected.Value

     

     So when Radio1.Selected text is "Hello World" the Radio1.Selected value will be "1". 

  • BrittanyR Profile Picture
    127 on at

    Exactly what I needed! Thanks. 

  • kr1shn4 Profile Picture
    2 on at
    Use Trim function to get the values added, in the below solution, it worked for me.
  • Craig_Humphrey Profile Picture
    190 on at

    Not sure if this has changed since the original post, but the behavior I see now is that Key is ignored and Value is what gets displayed.  And if you're trying to set Default, then it needs to match Value.  Making Key nearly useless.

     

    Context:

    I have an app with a lot of pairs of radio buttons, but on some devices the labels are too long, so I shrink them. To do this I have two separate Tables:

    If(GLIsInApp,
     Table({Key: "Pass", Value: "P"},{Key: "Fail", Value: "F"}),
     Table({Key: "Pass", Value: "Pass"},{Key: "Fail", Value: "Fail"})
    )

     

    Value is what the Radio will display.

    When I save a record, I save the Key.

    Then when I'm setting the default (e.g. to view or edit):

    Switch(ThisItem.TodayValue,
     "Pass", If(GLIsInApp, "P", "Pass"),
     "Fail", If(GLIsInApp, "F", "Fail"),
     Blank()
    )

     

    I'm lucky, I only have two radio buttons.  But this is a pain.  It's different from how most other controls work, where they can be associated with a record and then choose which property to display, or define search vs display fields.

     

    Unless I'm doing this completely wrong - which is plausible.

  • kay-es Profile Picture
    4 on at

    I am having the same issue as you. Did you find a workaround?

  • kay-es Profile Picture
    4 on at

    Actually, I was able to do this with the Modern version of the radio button control. Under Properties > Fields. Once I added my "Key" and "Value" fields there, the Radio Button displays the "Value" as the radio button text, with the "Key" as the backing store.

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 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard