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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,892)