cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
rajibabiker
Level: Powered On

Saving Checkboxes

Dear community, 

I have a gallery in relation to student data. 

 

And when I click on each record I get directed to the detailform page which contains their info/record.

 

I want to insert three check boxes for our staff to tick off.

 

Which are 

1. Have we assigned them a new email

2. Have we sent out the joining instructions to that particular starter.

 

I have inserted these check boxes. 

But When I tick these as being done for student x. 

and go back the checkboxes reset to unchecked. so the selections are not geting saved.

 

So my question is how do I save the results of my checkboxes and how do I make it different for each record?.

 

 

Many Thanks

 

5 REPLIES 5
Super User
Super User

Re: Saving Checkboxes

It sounds like your detailed form a display or edit form? Where the check boxes added to the data source where the data gets saved?



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Community Support Team
Community Support Team

Re: Saving Checkboxes

Hi @rajibabiker ,

Could you tell me how do you want to use the result of checkboxes?

1)If you want to set the result as variables, you could try this:

insert 4 check boxes, set check box1's and check box3's Text: :"true",set check box2's and check box4's Text: :"false"

(check box1 and check box2 for question1, check box3 and check box4 for question2)

Set checkbox1's OnCheck: Set(var1,true)

      checkbox2's OnCheck: Set(var1,false)

      checkbox3's OnCheck: Set(var1,true)

      checkbox4's OnCheck: Set(var1,false)

Then, the variabe var1 is the result of question1 and variabe var2 is the result of question2.

2)If you want to update field, you could try thisSmiley Sadassume that they are choice cholumn)

Patch(listname,Defaults(listname),
{question1.Value:If(Checkbox1.Value=true,true,Checkbox2.Value=true,false),
question2.Value:If(Checkbox3.Value=true,true,Checkbox4.Value=true,false)}
)


7121.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
rajibabiker
Level: Powered On

Re: Saving Checkboxes

Thank you for reply yes I am using an edit form to attempt to store changes

rajibabiker
Level: Powered On

Re: Saving Checkboxes

Thank You this is helpful, 

rajibabiker
Level: Powered On

Re: Saving Checkboxes

I have now coded the checkbox as 

Oncheck=true 

OnUncheck=false

 

And default tab for checkbox1 as

ThisItem.'ConfirmationSent'

 

And on the datacard 'ConfirmationSent' under update tab I coded 

Checkbox1.Text

 

But this still doesnt work, 

the tick box doesnt stay ticket for the particular record.

 

Thanks in Advance

 

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 247 members 4,785 guests
Please welcome our newest community members: