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 / Button with modern Rad...
Power Apps
Answered

Button with modern Radio Control

(0) ShareShare
ReportReport
Posted on by 100

Hey Guys,

 

Need your expertise in Radio Modern control.

 

I have a button and this button work as Global Variable = On Select = Set(VarRadio,true).

 

This will work with old classic Radio since it have "Default" just input "VarRadio".

 

But Modern Radio control does not have Default option instead it has Defaultselecteditem. 

 

So where should I input the VarRadio?

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Haki500 

     I test it in my side , you can refer to , this is the items in my Radio control:

    vyueyunmsft_0-1714973061005.png

    So if we want to set the default selected in this control , we can put this in the "DefaultSelectedItems":

    {Value: "Item 1"}
     
    vyueyunmsft_1-1714973108085.png

    The Value the column Name in the items Table.

     

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

  • Haki500 Profile Picture
    100 on at

    Hi @v-yueyun-msft ,

     

    Thanks for your prompt response.

     

    Let me rephrase my sentence, I only wanted to the Radio change let said "Yes" if button is click.

     

    So how the I perform this in modern control?

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi, @Haki500 

    Thanks for your response!

    Dose your Radio control items is [true,false]  ?

    vyueyunmsft_0-1714980339704.png

    vyueyunmsft_1-1714980484934.png

     

    If this , you can use this code in your Button -OnSelect:

    Set(VarRadio,{Value:true});Reset(RadioGroupCanvas3);
     
    And RadioGroupCanvas3 - DefaultSelectedItems:
    VarRadio
     

     

     

    If I misunderstand what you mean, you can share a screenshot in your side. If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

  • Haki500 Profile Picture
    100 on at

    Hi @v-yueyun-msft ,

     

    My Radio item is text ["Yes", "No"]

     

  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Haki500 

    Thanks for your response , can you try to use this code in your Button-OnSelect:

    Set(VarRadio,{Value:"Yes"});Reset(RadioGroupCanvas3);
     
    And RadioGroupCanvas3 - DefaultSelectedItems:
    VarRadio
    vyueyunmsft_0-1714981534296.png

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • Haki500 Profile Picture
    100 on at

    Hi @v-yueyun-msft ,

     

    It works perfectly but the reset function is not working, possible to reset via button too?

  • goncalomelo8 Profile Picture
    on at

    Hi @Haki500,

     

    @v-yueyun-msft response is the correct one. Nonetheless, I just want to point out that if you only have true/false options, it can also be a good idea, depending on your needs, to use the toggle control.

     

    You can use the same varRadio variable.

    goncalomelo8_0-1714981953138.png

     

    Have a great day.

     

    Kind regards,

    Gonçalo Melo

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Haki500 

    Yes,  i am putting this code in the Button - OnSelect:

    vyueyunmsft_0-1714982119877.png

     

     

    Best Regards,

    Yueyun Zhang

  • Haki500 Profile Picture
    100 on at

    @v-yueyun-msft ,

     

    It giving me error as the radio is within the gallery. Please advise.

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Haki500 

    If your Radio Control in a gallery , you do not need to use the reset() function, you can try to use this code in your Button- OnSelect:

     Set(VarRadio,{Value:"No"});Set(VarRadio,{Value:"Yes"});
     

    Best Regards,

    Yueyun Zhang

     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard