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 / Change Text Input Styl...
Power Apps
Answered

Change Text Input Style When Display Mode is View

(0) ShareShare
ReportReport
Posted on by 1,401 Moderator

Is there no way to change the appearance of a text input when the DisplayMode is View?

Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @IPC_ahaas ,

     

    Why yes, just use the code below in the input's property you want to change:

     

    If(Self.DisplayMode = DisplayMode.View;
    //View mode;
    //Other mode
    )

     

    Hope this was helpful to you.

  • IPC_ahaas Profile Picture
    1,401 Moderator on at

    I don't understand where to put this code. When a text field is in View mode, it has no border. I want to maintain the border color I specified under BorderColor.

  • Verified answer
    WiZey Profile Picture
    3,023 Moderator on at

    Unfortunately, the border does disappear when switching to "View" mode.

     

    However, there is one trick to keep the border's outline:

     

    You can add a rectangle behind the input, and make it appear like the input's border.

  • SajidAli-Kaust Profile Picture
    5 on at

    Write the Stated code on DisplayMode

     

    If(
    DisplayMode.View,
    BorderStyle.Solid, BorderStyle.None
    )

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 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard