cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
slhangen
Helper V
Helper V

Form Mode not working

App generated from SharePoint giving me all kinds of problems.

 

Cannot get form to open up in New mode. 

 

Using OnSelect button code:

NewForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

 

EditForm1 only opens up to Edit mode. Changed default mode and EditForm1 still stays in Edit mode.

 

Sorry for posting a remedial issue but I cannot fix this.

 

Stumped!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User
Super User

@slhangen 
I would like to make sure the Form is definitely not in new mode.  What is the result if you put this code in a label?

EditForm1.Mode = FormMode.New

 

If the form is not in New Mode after clicking on the button there must be some code running in the OnVisible property of the next screen.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
mdevaney
Super User
Super User

@slhangen 
I would like to make sure the Form is definitely not in new mode.  What is the result if you put this code in a label?

EditForm1.Mode = FormMode.New

 

If the form is not in New Mode after clicking on the button there must be some code running in the OnVisible property of the next screen.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

I am getting a true in the label.

 

But when I had the text of the label set to EditForm1.DisplayMode I was getting edit.

 

Also, have title card default set to If(EditForm1.DisplayMode=New, varUserEmail, Parent.Default) and am getting a blank field.

 

SMH!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,659)