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

Notifications

Announcements

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

  • Verified answer
    v-xida-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard