Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hYTsVnwtCs8rFWb5FUs6LH
Power Apps - Building Power Apps
Answered

Radio Button default value

Like (0) ShareShare
ReportReport
Posted on 11 Nov 2021 06:59:17 by 37

Hi Guys,

 

I have a simple radio button with two options (Yes, No), the items come from this formula 
Table({key:"",value:"No"},{key:"",value:"Yes"}),

 

I am just wondering how can I set a default value for the radio button since I have key and value parameters as shown,

 

I appreciate your help 

 

 

 

 

Categories:
  • WarrenBelz Profile Picture
    146,792 Most Valuable Professional on 11 Nov 2021 at 09:06:40
    Re: Radio Button default value

    @Fado ,
    Exactly what I posted at the start . . .

  • Fado Profile Picture
    37 on 11 Nov 2021 at 08:15:59
    Re: Radio Button default value

    Hi @Ramole ,thanks, you save my day,That is it 

     

    I appreciate it 

  • Verified answer
    Ramole Profile Picture
    Super User 2024 Season 1 on 11 Nov 2021 at 07:50:57
    Re: Radio Button default value

    Hi @Fado 

    Please check this sample app 

     

    This the code used and screenshot 

    Items property of Radio = 

    Table({Key: "Yes", Value:1},{Key: "No", Value:2})

     

    Default property of Radio = 

     

    "Yes"

     

    If your using a patch add this at end of the patch 

    Reset(YourRadiobuttonName)

     

    CaptureYes.PNGCaptureitemp.PNG

  • WarrenBelz Profile Picture
    146,792 Most Valuable Professional on 11 Nov 2021 at 07:39:48
    Re: Radio Button default value

    @Fado ,

    I am having trouble pasting an image in that post, so I will do the lot again - Default

    2021-11-11_17-30-21.jpg

    Items - before I set the Default (I tested with a manual input)

    WarrenBelz_0-1636616315812.png

    I then reset the control in the first image.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • Ramole Profile Picture
    Super User 2024 Season 1 on 11 Nov 2021 at 07:38:12
    Re: Radio Button default value

    CaptureRadio.PNG

     

    radio button control Default  Use "Yes" or "No" whichever you need to be default 

  • Fado Profile Picture
    37 on 11 Nov 2021 at 07:36:34
    Re: Radio Button default value

    Thank you, but how did you set the default value for the radio button control, please can you show me the formula 

     

  • Fado Profile Picture
    37 on 11 Nov 2021 at 07:34:27
    Re: Radio Button default value

    Hi @Ramole I mean hiding the label of the radio button if I use ["Yes", "No"] in item property,

    Radio_1.jpg

  • WarrenBelz Profile Picture
    146,792 Most Valuable Professional on 11 Nov 2021 at 07:33:22
    Re: Radio Button default value

    @Fado ,

    I actually tested it here before I posted and using a multi-field table in a Radio control like you have is unusual

    Items

    WarrenBelz_0-1636615761706.png

    Default

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

  • Ramole Profile Picture
    Super User 2024 Season 1 on 11 Nov 2021 at 07:30:33
    Re: Radio Button default value

    Hi @Fado 

    Sorry I didn't understanding you question, can you please tell me what you need to hide and so on, for example do you need to hide the text label like not to show on the screen  ? 

  • Fado Profile Picture
    37 on 11 Nov 2021 at 07:26:03
    Re: Radio Button default value

    Thank you for the reply, this will work but I have one issue, I can't hide the text "Yes" and "No" in the radio control 

     

    as shown in the attached due to the fact of this I used a table instead.

     

    Thanks

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 20

#2
BCBuizer Profile Picture

BCBuizer 10 Super User 2025 Season 1

#2
LC-26081402-0 Profile Picture

LC-26081402-0 10

Overall leaderboard