cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gmaasz
Level: Powered On

Change default display of form using variable

I have an 'Edit' form with DefaultMode set to 'View', which I want to change to 'Edit' by clicking a button. I tried to use a variable and set the variable to Displaymode.View and DisplayMode.Edit when clicked, but it gives to following error:

 

The property expects Enum values, but this rule produces incompatible Text Values.

1 ACCEPTED SOLUTION

Accepted Solutions
gmaasz
Level: Powered On

Re: Change default display of form using variable

So I went and used the FormMode function instead of the Displaymode function and set it with a variable.

2 REPLIES 2
Super User
Super User

Re: Change default display of form using variable

@gmaasz 

 

You could simply use the EditForm function to put your form into Edit mode. 

On the OnSelect of your button, place this formula:  EditForm(yourFormName)

 

I hope that is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
gmaasz
Level: Powered On

Re: Change default display of form using variable

So I went and used the FormMode function instead of the Displaymode function and set it with a variable.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 40 members 4,096 guests
Please welcome our newest community members: