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 / RadioButton and Patch ...
Power Apps
Unanswered

RadioButton and Patch SP List

(0) ShareShare
ReportReport
Posted on by 43

Not sure what I'm doing wrong, all my fields write except my radio button.  I have other apps, where it works, but the other app had score values so written a bit differently, but I get no errors on submit. 

RoxyRoller_0-1659557032055.png

Patch(
'Project Time Tracker',
Defaults('Project Time Tracker'),
{
'Name of Professional': DataCardValue17.Selected,
'Project List': Radio1.SelectedText,
'Date of Work': DataCardValue18.SelectedDate,
'Hours Spent On Project Today': Value(DataCardValue19.Text),
'Summary of Work Items Performed': DataCardValue20.Text
}
);

RoxyRoller_1-1659557163520.png

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @RoxyRoller 

    SelectedText is a deprecated property and should not be used.

    Is project list a choice column or text?

  • Cmugford Profile Picture
    43 on at

    Hi Randy, it's a choice (via Radio Button) - I started with a drop down and couldn't get that to work, so went with Radio Button as I have done that in another app (that I think I actually think you helped me with haha).  But stuck again.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @RoxyRoller 

    If the data column then is a Choice column, then the formula can be changed to the following:

    Patch('Project Time Tracker',
     Defaults('Project Time Tracker'),
     {
     'Name of Professional': DataCardValue17.Selected,
     'Project List': Radio1.Selected,
     'Date of Work': DataCardValue18.SelectedDate,
     'Hours Spent On Project Today': Value(DataCardValue19.Text),
     'Summary of Work Items Performed': DataCardValue20.Text
     }
    );

     

    However, I notice that you are referencing datacardvalue controls...this implies you have a form.  In which case, you should not be using a Patch at all.  You Should be using a SubmitForm on your form.  Is there any reason for the Patch?

  • Cmugford Profile Picture
    43 on at

    No, other than I'm just winging it and learning as I go... using you tube videos as my guide every time I attempt to build a small app when required.  What is the difference/use for Patch?

  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    Patch(
    'Project Time Tracker',
    Defaults('Project Time Tracker'),
    {
    'Project List': Radio1.Selected.value
    }
    );

  • Cmugford Profile Picture
    43 on at

    Hi Randy, I updated it, but the choice chosen, still won't flow to the SP list. 

    RoxyRoller_0-1659558406737.png

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @RoxyRoller 

    Well, the Form is one of the more powerful features/controls in PowerApps.  It provides a tremendous amount of functionality and features that would take you a long time to try and build yourself.

    Doing a Patch is only a very small part of what a form does, so, using a patch completely wastes all that the form brings to you.  Plus, the form is highly simple to use as opposed to the complexity of building your own patch statement.

     

    I would stick with the form and use the SubmitForm on your form.

    In this case, make sure your Update property on the DataCard for the Project List field is what you need it to be.

  • Cmugford Profile Picture
    43 on at

    Hi Akash17, I did try that as well already, but it gives me an error

    RoxyRoller_0-1659558536097.png

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @RoxyRoller 

    Yes, that suggestion will not work on a Choice column.

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 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard