web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DisplayMode.Edit not w...
Power Apps
Answered

DisplayMode.Edit not working

(0) ShareShare
ReportReport
Posted on by 45

This is a SharePoint custom list form.  I have a button that when clicked is supposed to set certain fields to edit mode, and leave the rest in view mode.

 

My buttons OnSelect: Set(varMode, "true")

 

For the fields that need to be editable, I have DisplayMode: if(varMode="true", DisplayMode.Edit, DisplayMode.View)

 

When I publish and go view the form, I click the button and it looks like the fields changed from view to edit.  The field box even appears, however when I click to type something, nothing happens.  Any ideas what this could be?  Thanks for the help.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Poseidon10 

    Make sure your formula is in the right place. If(varMode, Edit, View) should be in the DisplayMode property of the cards you wish to edit. Leaving the form's Default mode as View, will keep the rest of the cards read only.  FYI, there is no need for the "= true" as varMode already reduces to true.

  • Poseidon10 Profile Picture
    45 on at

    @Drrickryp , yes the formula is in the DisplayMode of the property of the cards.  Like I said it seems like it works because when I click the button, the fields do change from view to edit.  However when I click in the text box no cursor appears and I cant type anything.

  • Verified answer
    Poseidon10 Profile Picture
    45 on at

    I was able to fixed this.  I had set the default of the form to "view" and it was contradicting to the displaymode formula.  Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard