cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Checkbox needs to be applied twice

Hello everyone.

This is my first message.

 

I am new to powerapps and I hope I could find some help to a topic that seems unsolved to me. I have a checkbox on a basic app connected to a table at onedrive. It seems that it works fine except that whenever I tick it or untick it and then press the save icon to get me back to the detail screen, the value is not updated and it returnes to the previous value, unless I do it twice. Does anyone have any idea why this happens? I am attaching a screenshot so you can understand how basic my code is and it might be a bug.

Thank you for your help.

printscreen.jpg

 

Tony

5 REPLIES 5
Highlighted
Super User
Super User

On the Save button's OnSelect property, add something like this using your Checkbox's name:

 

Reset(YourCheckboxControl);

 

 

Highlighted

thnx for the reply.

No luck with this one. reset gives me an error on the save button.

I might be missing something here and maybe I cannot understand your answer.

Highlighted

What error are you getting? Make sure you replaced my "YourCheckboxControl" token with your actual checkbox name.

Highlighted

That only resetable controls cane be used with Reset command.

Btw whats the logic behind the reseting the checkbox and not save it and parse it to the DetailScreen?

Highlighted

Hi @Tony_Boy ,

Firstly, are you sure you update successfully?

Could you show me the Complete datacard's Update property?

It should be like: checkbox1.Value

 

Secondly, could you show me the checkbox's Default?

It should be like:  Parent.Default

 

Thirdly, I suggest you refresh your data source after you update data.

Maybe data updating delay leads to this problem.

set the submit button's OnSelect:

SubmitForm(Form1);Refresh(datasource)

 

 

 

Best regards,

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

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