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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

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