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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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