cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Button color depending on view/edit form

Hello,

 

I have a button (icon) that works in Edit mode, but does not work in View mode.

This button is confusing for people so I thought that I chang it to different color in View mode.

 

I am trying hard to make that, but I have a trouble in changing Color property.

I tried function:

 

 

If(Form4.Mode=FormMode.View;ColorValue('DimGrey';'White'))

 

But I receive one error:

Invalid number of argument. Received 2 expected 1.

How can I make this to work in ViewMode (GREY), in EditMode (WHITE).

I need two arguments? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Memorable Member
Memorable Member

Re: Button color depending on view/edit form

Hi,
change the Button Fill Properties based on Condition Like Below.
If(Form1.DisplayMode="edit",Red,Gray)

VijayTailor_0-1600694464365.png

 

Thanks, Hope this helps you to resolve your issue.



  

View solution in original post

1 REPLY 1
Highlighted
Memorable Member
Memorable Member

Re: Button color depending on view/edit form

Hi,
change the Button Fill Properties based on Condition Like Below.
If(Form1.DisplayMode="edit",Red,Gray)

VijayTailor_0-1600694464365.png

 

Thanks, Hope this helps you to resolve your issue.



  

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,978)