cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

EditForm1.Mode = 1, not evaluating as true when it should be

I think if we figure this out it will answer my other problem too, as they're both connected to IF statements and form modes...

 

So my OnSuccess statement has recently stopped working

 

If(EditForm1.Mode = 1,
Navigate(SuccessScreen, ScreenTransition.Fade),Back())

 

Both the Navigate and Back functions work fine on their own

It's the IF statement. It's not evaluating "If(EditForm1.Mode = 1" to be true.
But it is true, because I added a couple of labels to my form to show the display mode and form mode

So what on earth is going on?
Any advice woud be greatly appreciated
Thanks

V

1 ACCEPTED SOLUTION

Accepted Solutions
KroonOfficeSol
Level 10

Re: EditForm1.Mode = 1, not evaluating as true when it should be

@Anonymous

 

The problem is your form is succesfully submitted, so I think probably not a new form anymore. What you can do is on your button catch the formmode in a variable and then use this variable in your If() formula. This will solve your problem.

 

Hope this helps.

 

Paul

View solution in original post

2 REPLIES 2
KroonOfficeSol
Level 10

Re: EditForm1.Mode = 1, not evaluating as true when it should be

@Anonymous

 

The problem is your form is succesfully submitted, so I think probably not a new form anymore. What you can do is on your button catch the formmode in a variable and then use this variable in your If() formula. This will solve your problem.

 

Hope this helps.

 

Paul

View solution in original post

Anonymous
Not applicable

Re: EditForm1.Mode = 1, not evaluating as true when it should be

As usual you're spot on!

I just had to go away and do a quick Shaun Young crach course on variable tyeps...
https://www.youtube.com/watch?v=e2_BGekECfY

All sorted
Thanks again!  Smiley Very Happy
V

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,618)