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 / How to use DefaultSele...
Power Apps
Answered

How to use DefaultSelectedItems of a radio group button

(1) ShareShare
ReportReport
Posted on by 9
Hi,
 
I have a radiogroup button with these values : 
 
Table({Key: "OK"; Value:" "};{Key: "NOK"; Value:" "};{Key: "Non observé"; Value:" "})
 
What it can do for now is when I click on all my radio buttons, and then to a button, it adds a row to an excel table (with an ID)
What I haven't been able to do is having a default value to my radiobuttons depending on the choices i've made before if I try to modify an existing row
 
I tried giving a global variable to DefaultSelectedItems : 
I have a variable called test_variable and is Set with the onVisible of my page : 
Set(test_variable; "Blank()");;
When I write directly Blank() inside DefaultSelectedItems I have no error and it works, so I don't quite understand how it works.
 
There is no information on the microsoft help page.
 
How can I have a default selected button if I try modifying a row, and none selected if I try adding a new one ?
 
Categories:
  • Verified answer
    MichaelFP Profile Picture
    2,008 Moderator on at
    Do you have this table store in a collection? If you is always set table direct in each radio group button is not a good approach.
     
    try something like that:
     
    create a new collection with the table, to be used for all radio group buttons.
     
    ClearCollect(colItensDefaults;Table({Key: "OK"; Value:" "};{Key: "NOK"; Value:" "};{Key: "Non observé"; Value:" "}))
     
    Set this collection to the values of the radio group, in the Items.
     
    Now, on the default selected items apply a filter on that collection using the value from a existing record,  
     
    Filter(colItensDefaults; Key = "NOK")
     
    and you will see that default value it will be came with the correct selection.

     
     
     
     
    If my answer helped you, please give me a thumbs up (👍). If solve your question please mark as answer ✔️. This is help the community.
     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard