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 Control Default
Power Apps
Answered

Radio Control Default

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I have two screens that represent two views of the same data, one for reviewers and one for buyers.

Both screens are exactly the same except for the how the Galleries and Controls are filter/formatted.

I have a Radio control on both. The Radion control is pulling in the same default information from the same SPList using -

Gallery

Item: SortByColumns(Filter('Test List', StartsWith(Title, TextSearchBox1_2.Text)), "Title", If(SortDescending1, Descending, Ascending))
Radio control (1 & 2): Default: ThisItem.ContactStatus.Value

I would like to add an UpdateIf to the Radio 'OnChange' (if that is the correct place) that updates the column in the SPList when/if the user changes the status of an item in the Gallery using the Radio control.

Something like:
UpdateIf('Test List',CompanyName=Subtitle1_4.Text), ThisItem.ContactStatus.Value)

Phineas_0-1647023953902.png

 

Categories:
I have the same question (0)
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    I'm a bit confused on how you have this setup. Are the radio buttons 4 seperate radio controls in the gallery for each status? 

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    Nevermind I get it now. 

     

    I prefer to use OnSelect but something like 

    Patch('Test List',Lookup('Test List',id = ThisItem.id),{ContactStatus.Value : RadioControlName.Selected.Value}) 

     

    ContractStatus might not need the .Value at the end I forget. 

     

    That should net the results you need. 

  • Phineas Profile Picture
    5,331 Moderator on at

    Edited Content:

    I tried the following and go an error -
    Update('Test List', First(Filter('Test List', CompanyName=Subtitle1_4.Text)), {ContactStatus: Radio3_1.Selected.Value})

    Error Message:

    Incompatible type. The 'ContactStatus' column in the data source you're updating is expects a 'Record' and you're using a 'Text' type.

    ******************************

    It's a Gallery with an SPList as a data source. The Gallery has numerous controls, including one Radio control.

    The Radio control has the following in the Items property:
    Choices([@'Test List'].ContactStatus)

    And the following in the Default property:
    ThisItem.ContactStatus.Value

    I want the user to be able to update the ContactStatus column for a given item by changing the Radio button.

  • Phineas Profile Picture
    5,331 Moderator on at

    Solved it!

     

    UpdateIf(
    'Test List',
    CompanyName=Subtitle1_4.Text,
    {
    ContactStatus: {Value:Radio3.Selected.Value
    }})

     

    Thanks!

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    I don't know your schema etc. for this list, but be careful using that way, because if your Company Name column has multiple projects or whatever and it uses that same name, when you use the updateif it's going to update all instances of that. That's why I utilized the id of the selected item in my example. You can use updateif as well if you feel like it, but you want to make sure you are updating the actual selected value and not all values with Company Name being the same, unless that's the intention. 

  • Phineas Profile Picture
    5,331 Moderator on at

    Yes, understood. Thank you for the caution.

     

    How about a Radio button with a single hard-coded item "Primary". If the SPList shows true in the column list the Radio button should be true (there is no false, since I only hard-coded one item).

     

    Below is an example. The text box is the status of the Gallery item the Radio should be reflecting. I want to put a formula in the default of the Radio control that says if default item is 'true' Radio 'true' if no Radio 'reset' (as there is no false).

     

    Phineas_0-1647039310531.png

     

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    Is this a separate issue? If so please start new thread and try to explain a bit clearer, kind of hard to understand that ask. 

  • Verified answer
    Phineas Profile Picture
    5,331 Moderator on at

    Yes, it could be considered a separate - though related, issue.

    I solved it myself...

    If(SDReviewScreenPSMImmediateNeedFld.Text="true","Primary Service Materials","")

    Thank you for the help.

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
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard