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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Changing color based on data exist or not in sharepoint list

(0) ShareShare
ReportReport
Posted on by 36

Hi I have a sharepoint list as mentioned below

Mahesh005_0-1687806844153.png

In Power apps i have Cell id combox and a button as below

Mahesh005_1-1687807020248.png

my scenario is to change button color as yellow when if there is a  date in Actual start date i.e. not empty.

 

Any help is appreciated.

 

Thanks

Mahes

I have the same question (0)
  • Ami K Profile Picture
    15,670 Super User 2024 Season 1 on at
    Re: Changing color based on data exist or not in sharepoint list

    Hi @Mahesh005 ,

     

    Is the Combo box and Button on a Form control?

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • Mahesh005 Profile Picture
    36 on at
    Re: Changing color based on data exist or not in sharepoint list

    hi @Amik ,

    no. it's just a individual button and a individual combo box. i just need color changing logic either it can be button or a lable.

     

    Thanks,

    Mahesh

  • madlad Profile Picture
    2,637 Moderator on at
    Re: Changing color based on data exist or not in sharepoint list

    In the button's fill, you could use IsBlank(YourComboBox.Selected.ActualStartDate, Color.Yellow, Color.Blue)

     

    hope this helps!

     

  • TimmeyNL Profile Picture
    7 on at
    Re: Changing color based on data exist or not in sharepoint list

    Hi @Mahesh005 

    You can reference the combobox's not visible field in combination with the Fill of the button.

    If(Not(IsBlank(combobox.Selected.ActualStartDate)), RGBA(56, 96, 178, 1),RGBA(10,10,10,1))

  • Mahesh005 Profile Picture
    36 on at
    Re: Changing color based on data exist or not in sharepoint list

    hi @TimmeyNL , @madlad 

     

    I have Cell id in combo box. so Actual start date is not coming

    Mahesh005_0-1687808562905.png

    Thanks,

    Mahesh

  • Ami K Profile Picture
    15,670 Super User 2024 Season 1 on at
    Re: Changing color based on data exist or not in sharepoint list

    @Mahesh005 - assuming the Items property of your Combo Box is the data source, apply the below to the Fill property of your Button.

     

     

     

    If(
     IsBlank(
     LookUp(
     'Your Data',
     Title = Your_ComboBox.Selected.Title',
     'Actual Date'
     )
     ),
     Color.Yellow,
     Color.Blue
    )

     

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • Mahesh005 Profile Picture
    36 on at
    Re: Changing color based on data exist or not in sharepoint list

    Hi,

     

    I have Combobox values as follows

    Mahesh005_2-1687808804537.png

     

     

  • TimmeyNL Profile Picture
    7 on at
    Re: Changing color based on data exist or not in sharepoint list

    @Mahesh005 

    What do you have as source for your items?
    It should be a reference to your sharepoint list, datatype table (in this case, my list is called Client):

    TimmeyNL_0-1687808944162.png

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 381 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard