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 / Need Help to Update CD...
Power Apps
Answered

Need Help to Update CDS DataCard from Radio Button control

(0) ShareShare
ReportReport
Posted on by 8

I have a presentation on Wednesday that I need to have this fixed.  

 

I have added  Radio Button to my DataCard (replacing the default control), as shown below.  The data stored in CDS is correctly updating the values on existing records.  But when I change the data using the controls, or the text box for that matter, the record in CDS is not being updated, although the SubmitForm(JobReadyForm) appears to be saving the record without reporting errors.

 

THANKS FOR YOUR HELP!

 

This the Advanced settings for the DataCard and Radio Button...

Radio Button DataCard image.pngRadio Button Advanced Settings.png

Radio Button DataCard image.png
Radio Button Advanced Settings.png
Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @DonBo 

     

    What is the default property for the data card containing the radio button 

    Make sure to set that up correctly to read the value from the radio button control

    That would be the value set in the CDS DB

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • DonBowden1 Profile Picture
    8 on at

    I made this change to the DataCard "Default" and got this error

     

    Radio Button DataCard Default field error.png

    Radio Button DataCard Default field error.png
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @DonBo 

     

    what does the error message say?

    what type of column is this in CDS?

  • DonBowden1 Profile Picture
    8 on at

    Here is the error

     

    Error message1.png

    Error message1.png
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @DonBo 

     

    since you are using an option set - you need to ensure the dropdown is being populated based on the Option set values

     

    You have hardcoded "Yes" and "No" as text values and hence it will not be able to update it

  • DonBowden1 Profile Picture
    8 on at

    OK.  I think you are on to something.  I need to replace the Items field that contains the current value ["Yes", "No"], with something like ThisItem.'Job Clean'?  Thanks for your help.  

  • DonBowden1 Profile Picture
    8 on at

    ThisItem.'Job Clean' didn't work.  

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

    Hi @DonBo ,

    Could you please share a bit more about the 'Job Clean', 'All Required Inspections Passed', 'All Required Work Complete',... column in your CDS Entity? Are they all Option Set type column with "Yes" and "No" available value?

     

    I assume that the you added your Radio control within the Data cards in your Edit form, and these Option Set/Two Option type column has available options -- Yes & No, is it true?

     

    I have made a test on my side, please take a try with the following workaround:

    1. If the 'Job Clean', 'All Required Inspections Passed', 'All Required Work Complete',... are Option Set Type column in your CDS Entity:3.JPG

     

    4.JPG

    Unlock the ApprovalStatus Data card in Edit form, add a Radio control, set the Items property to following:

    ["Yes", "No"]

    Set the Default property of the Radio control to following:

    If(ThisItem.ApprovalStatus = [@ApprovalStatus].Approved, "Yes", "No")

    On your side, you may need to type following formula:

    If(
    ThisItem.'Job Clean' = [@'Job Clean'].Yes, "Yes",
    ThisItem.'Job Clean' = [@'Job Clean'].No, "No"
    )

     

    Set the Update property of the ApprovalStatus Data card to following:

    If(
     Radio1.Selected.Value="Yes",
     [@ApprovalStatus].Approved,
     Radio1.Selected.Value="No",
     [@ApprovalStatus].Rejected
    )

    On your side, you may need to type following formula:

    If(
     Radio1.Selected.Value="Yes",
     [@'Job Clean'].Yes,
     Radio1.Selected.Value="No",
     [@'Job Clean'].No
    )

     

    2. If the 'Job Clean', 'All Required Inspections Passed', 'All Required Work Complete',... are Two Option Type column in your CDS:

    Set the Default property of the Radio control to following:

    If(
    ThisItem.'Job Clean' = 'Job Clean (YourEntityName)'.Yes, "Yes",
    ThisItem.'Job Clean' = 'Job Clean (YourEntityName)'.No, "No"
    )

    Set the Update property of the ApprovalStatus Data card to following:

    If(
     Radio1.Selected.Value="Yes",
     'Job Clean (YourEntityName)'.Yes,
     Radio1.Selected.Value="No",
     'Job Clean (YourEntityName)'.No
    )

    Please consider take a try with above solution, check if the issue is solved.

     

    More details about modifing Option Set type column value, please check the following blog:

    https://powerapps.microsoft.com/en-us/blog/option-sets-and-many-to-many-relationships-for-canvas-apps/

     

    Best regards,

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard