cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dave-jorgensen
Advocate V
Advocate V

DisplayMode=View removes border

Would be greating if having controls with DisplayMode=View can have a border. I see a similair post about the padding being removed when in View mode, but since this is a seperate issue, I'm making a new item.

 

Any way to have a control (textbox or label) have a border, and also be in View Mode?

 

Thanks

33 REPLIES 33
EMCA1
New Member

On your form, select the data card that you want to edit then select the actual control. In my case, I selected my dropdown control.

 

On the BorderColor property of your control, input:

 

If(Form1_1.Mode = FormMode.Edit, Color.DarkBlue, RGBA(0,0,0,0))

 

where

 

Form1_1 is equal to yourFormName

Form1_1.Mode = FormMode.Edit is equal to logical test

Color.DarkBlue = Color.yourChosenColor is equal to true value

RGBA(0,0,0,0) is equal to else/false value

 

this makes your control border Dark Blue on Edit mode and transparent border on View mode.

 

I tried this and it works. Please accept solution if it works for you. Thanks!

 

 

RameshMukka
Post Prodigy
Post Prodigy

This is 2022 June and we still cannot set border thickness when text input is in view mode.

I had to make the displaymode to disabled and set its DisabledBorderColor  and Thickness property and also change the DisabledFill accordingly.

MI2022
Frequent Visitor

I didn't spent too much time with this issue. I've changed the Visual Background color (like grey) and by this, on the View Mode, the borders are still not visible, but with the contrast between the background color and the fields I can already see the edges of the fields clearly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,477)