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

ERROR TO SAVE AND RESET CHECKBOXES

I have a drop-down field with two choices, but when I save or update the item it goes back to the original like the gif below:

 

ezgif.com-gif-maker (1).gif

 


I was wondering why don't you save the other option

 

Thanks for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@Gorilla_8 

Change your Update formula to the following:

Filter(
    ForAll([Checkbox1, Checkbox2],
        If(Value.Value, {Value:Value.Text})
    ),
    !IsBlank(Value)
)

Change your Default formulas on ALL the checkboxes to the following:

Self.Text in ThisItem.CustosEstimadosOpcao.Value

 

This will write your options properly and the checkboxes will show their proper check state when you edit a record.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

5 REPLIES 5
Super User III
Super User III

@Gorilla_8 

Change your Update formula to the following:

Filter(
    ForAll([Checkbox1, Checkbox2],
        If(Value.Value, {Value:Value.Text})
    ),
    !IsBlank(Value)
)

Change your Default formulas on ALL the checkboxes to the following:

Self.Text in ThisItem.CustosEstimadosOpcao.Value

 

This will write your options properly and the checkboxes will show their proper check state when you edit a record.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Post Prodigy
Post Prodigy

@RandyHayes 

 

One more simple question that I forgot to posted...

How I reset the checkbox if the user selects one checkbox resets another?


I am trying with "UpdateContext" and "If" didn't worked with you can response, or I create another post

Super User III
Super User III

@Gorilla_8 

I am getting that you have situations where if one checkbox is checked, that another should not be checked.

If this is the case, you will need to put this into your Default property.

 

For example - let's say CheckBox2 should NOT be checked if Checkbox1 is checked.  Then in your Default formula, you would have this:

Self.Text in ThisItem.CustosEstimadosOpcao.Value && !CheckBox1.Value
_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
Post Prodigy
Post Prodigy

@RandyHayes 

 

Thank you man, I really appreciate for all the help you gave me on the community!

Super User III
Super User III

@Gorilla_8 

My pleasure - I am glad it is helping!

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (22,059)