Skip to main content

Notifications

Community site session details

Community site session details

Session Id : EqKzAyaL7rcOB5ErLVrXqt
Power Apps - Building Power Apps
Answered

View Border for controls

Like (0) ShareShare
ReportReport
Posted on 10 Aug 2018 00:12:43 by 122

Hello,

 

Is there a way to have the border of controls visible when they are in a display mode of view?

 

I'm not sure if there is a way just thought I'd ask.

 

Thank you for your help,

Scobie

Categories:
  • Scobie Profile Picture
    122 on 14 Aug 2018 at 01:47:34
    Re: View Border for controls

    Hi @v-xida-msft,

     

    Yes I was trying to find out if I could get certain controls to have a border when in a display mode of view. Unfortunatly their is no option for that as of yet hopefully there will be an option in the future. I did try the scenario you suggested but I could get it to work just right for me and changed the look to a different way.

     

    Thank you for your help,

    Scobie

  • Verified answer
    v-xida-msft Profile Picture
    on 13 Aug 2018 at 02:31:45
    Re: View Border for controls

    Hi @Scobie,

     

    Could you please share a bit more about your scenario?

    Do you want to display the border of the control when they are in Display mode of view?

     

    I afraid that there is no direct way to achieve your needs in PowerApps currently. I agree with @Drrickryp's thought almost.

     

    I have made a test on my side, please take a tey with the following workaround:

     

    Add a Label control, and then Overlay the label over the control (you want to display border), Set the BorderThickness property of the Label control to 2, Set BorderColor property of the Label control to RGBA(56, 96, 178, 1).

     

    Set the Visible property of the Label control to following formula:

    If(Control1.DisplayMode=DisplayMode.View,true,false)

    Note: The Control1 represents the controls that you want to display border.

     

    Best regards,

    Kris

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 10 Aug 2018 at 17:04:10
    Re: View Border for controls

    Not directly, but if you unlock the card, you can add a label and set its text property to the DataCardValue of the card. (In the example, the form named FormX.) Set the Visible property of the label to If(FormX.Mode=0,false,true).  Overlay the label over the DataCardValue and set the Visible property of the DataCardValue to If(FormX.Mode=0,true,false).  BTW Shane Young has a great video of form properties on YouTube. https://www.youtube.com/watch?v=BnzaSDYl8mA

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 32

#2
Rajkumar_M Profile Picture

Rajkumar_M 16 Super User 2025 Season 1

#2
mmbr1606 Profile Picture

mmbr1606 16 Super User 2025 Season 1

Overall leaderboard