Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

Use Lookup to default checkbox and check/uncheck

I have an app that directly patches a radio values to the datasource and uses a lookup for defaulting the radio buttons. How can I convert these so that this format works with a checkbox. I don't know how to alter the onchange for oncheck and onuncheck for the checkbox. How can I alter the onchange for the uncheck part of the checkbox?

Onstart - ForAll(GUAT, Collect(collGUATMasterData, {C1: Step, C2:'Short Description', C3:LookUp(collGUATResponses, Title=vUserMail &&(GUATListID)=Text(Step) && (Scenario)=Text(Scenario) && (Step)=Text(Stepp) && (Name_)=Text(varUser), RadioValue), C4:System, C5:Scenario, C6:Stepp, C7:Name_=User().FullName}));


Default of radio button - LookUp(GUATResponses, Title=vUserMail && GUATListID = Text(ThisItem.C1)).RadioValue 


Onchange of radio button - Patch(GUATResponses,
Coalesce(LookUp(GUATResponses, Title=vUserMail && GUATListID=Text(ThisItem.C1) && Scenario=Text(ThisItem.C5) && Step=Text(ThisItem.C6) && Name_=varUser),
{Title: vUserMail, GUATListID: ThisItem.C1, Scenario: ThisItem.C5, RadioValue: Radio4.Selected.Value, Step:ThisItem.C6, Name_:varUser}
UpdateIf(collGUATMasterData, C1=ThisItem.C1, {C3:Self.Selected.Value});



Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (13,118)