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 / View Border for controls
Power Apps
Answered

View Border for controls

(0) ShareShare
ReportReport
Posted on 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:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    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

    ViewForm.PNG
    EditForm.PNG
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    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

  • Scobie Profile Picture
    122 on at

    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard