cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gmaasz
Helper IV
Helper IV

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
Helper IV
Helper IV

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

View solution in original post

3 REPLIES 3
RandyHayes
Super User III
Super User III

@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.
Check out my PowerApps Videos too!
gmaasz
Helper IV
Helper IV

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

View solution in original post

Yep, as you say "Keep it Super Simple"! 

 

 

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 Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (14,841)