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
Highlighted
Resident Rockstar
Resident Rockstar

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
Highlighted
Resident Rockstar
Resident Rockstar

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

Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,604)