cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tony_Boy
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
Anonymous
Not applicable

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

 

Reset(YourCheckboxControl);

 

 

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.

Anonymous
Not applicable

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

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?

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,321)