cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Silva_BR
Helper III
Helper III

Cannot work variable inside a form

Hi guys!

I'm going through something unusual for me.I'm doing a Tabbed Forms in my application and I need that at the end of each session click on the "confirm" button to go to the next session that hides and excuses my form. I then put this button and in the OnSelect property I put the formula

UpdateContext({varCheckout: varCheckout+1})

But the problem is that my variable is not incremented... if I copy and paste this same button out of my form it works and increments the variable as needed. I tried both with Set() and UpdateContext() both didn't work inside the form just outside the form.

I'm also including a gif attached to help understand what I'm going through, as I previously posted this question but the help I got didn't solve the problem

Ty for all!

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Silva_BR 

Make sure that your form is in New mode, or if in Edit or View, make sure you have a valid Item record for the form.

There is currently an issue with forms where the above conditions NEED to be met to resolve the scenario you are seeing.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@Silva_BR 

Make sure that your form is in New mode, or if in Edit or View, make sure you have a valid Item record for the form.

There is currently an issue with forms where the above conditions NEED to be met to resolve the scenario you are seeing.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Silva_BR
Helper III
Helper III

My form was not in the edit module for the new module and it worked, changed. Thank you very much

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,743)