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 🙂

View solution in original post

vribeiro
Frequent Visitor

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,246)