cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WackdeMack
Resolver I
Resolver I

Change displaymode in new/edit formmode

Hi all,

 

I have made an PowerApps Form. In the form, i want in new mode, two fields make in view mode.

When i edit the form, the fields needs to be edit.

 

Normally i use this, when i only want to show the fields in edit modus:

 

 

If(SharePointForm1.Mode = FormMode.New; false; true)

 

 

 But i want to see the fields in ForMode.New but how can i make them in view.mode?

I thought this make sence to my but i didn;t work very well:

If(FormMode.New = SharePointForm1.DisplayMode.View; false; true;)

 

1 ACCEPTED SOLUTION

Accepted Solutions
WackdeMack
Resolver I
Resolver I

If(SharePointForm1.Mode = New;
DisplayMode.View;
DisplayMode.Edit)

 

This is the solution 🙂

View solution in original post

2 REPLIES 2
WackdeMack
Resolver I
Resolver I

If(SharePointForm1.Mode = New;
DisplayMode.View;
DisplayMode.Edit)

 

This is the solution 🙂

Anonymous
Not applicable

Hi @WackdeMack , let me see if i get your idea,

 

You want to have a form in new mode but still showing 2 fields in viewing mode?

 

Normally I use the Visible property to Show View Form, and then goes to New or Edit mode changing the visibility of the components, so using Form1 to View and Form2 to Edit/New, it works for many scenarios because it very flexible in terms of visibility since you can't change the mode from view to new or edit on the same Form(at least in my knowledge, I can be wrong on that..)

 

 

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.

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 (20,881)