cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Elitezone
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
VijayTailor
Resident Rockstar
Resident Rockstar

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
VijayTailor
Resident Rockstar
Resident Rockstar

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (24,569)