web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PATCH and Radio button
Power Apps
Unanswered

PATCH and Radio button

(1) ShareShare
ReportReport
Posted on by 34

Hello,

 

I would like to ask regarding my PATCH function in my canvas app. I created SharePoint list database where I want to store records from canvas app. The tables are basically in sigle line of text format.

I use following patch for my Submit button:
Patch
(SharepointTable;
Defaults (SharepointTable);
{

  Country: drpCountryName;
  BranchID: DrpBranchID;
  BranchManagerID: txtBranchManager.Text
}
);

Navigate(anotherscreen)

 

then I recieved error that my Patch is not valid.

 

Second technical issue is with Radiobutton which I use for Yes/No option. I do not know how to make functional this buttons and save chosen choice to my SP list and if No is selected then I want to show other screen with additional comment section (already created). If is better to use another buttons instead of radio button then give me a hint, please.

 

Thanks for advice!

Categories:
I have the same question (0)
  • PowerStudent Profile Picture
    150 on at

    Hi,

    For your Patch function, ensure you're using the .Selected.Value for dropdowns and the .Text for text input fields. Here's an example:

    Patch(
     SharepointTable,
     Defaults(SharepointTable),
     {
     Country: drpCountryName.Selected.Value,
     BranchID: DrpBranchID.Selected.Value,
     BranchManagerID: txtBranchManager.Text
     }
    );
    Navigate(anotherscreen);

    For the radio button, set the OnChange property to:

     
    If(Radio1.Selected.Value = "No", Navigate(CommentScreen));

    And include the radio button value in your Patch function like so:

    YesNoChoice: Radio1.Selected.Value

    Remember to replace YesNoChoice with your actual SharePoint column name.


    For more detailed support, book a consultation call with me here:
    Consultation: https://softwarezone365.com/contact-us
    PowerApps Blogs:
    https://softwarezone365.com/power-apps


    Should you appreciate my assistance and wish to support my work, you might consider:
    Giving this post a Thumbs Up.
    If applicable, marking it as the Solution.


    Support my work:
    PayPal: https://www.paypal.com/donate/?hosted_button_id=DASYHQAEETD2J


    Contact directly:
    Email: Contact@SoftwareZone365.com
    WhatsApp: https://wa.me/+923087478066


    Best regards,
    Ahmad Raza

  • DidiBun Profile Picture
    34 on at

    Hello @M_Ali_SZ36,

    thanks for answer.

    If I want to use drpBranchID.Selected.Value it show to me only Selected function and I do not have a possibility to choose Value afterwards and that is the main problem in this case. Can you help? 

    Als oI would like to ask if is even possible somehow controll the selection of Radio button, like you must select some of the choice and then you can clik to Save button.

     

    Thanks!

  • DidiBun Profile Picture
    34 on at

    @M_Ali_SZ36

    and also I used formula for radio button but it navigates you to another page if you select No or Yes, not only No

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard