cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cagdas
Level: Powered On

Powerapps gallery

I have a problem.
The item I selected from the gallery is the next screen if the text is full. If the background color of the selected item is gray, keep the background white color if the text is not full.
how can I do it.
I'm currently galleri selected when the text is full, all items are gray background. I want the selected item
screenshot below
thank you in advance for your answers.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Powerapps gallery

Hi @cagdas,

Could you please share a bit more about your scenario?

Do you want the background color of the selected item to be gray if the Text is full, otherwise, to be white?

Could you please share a bit more about the DataCardValue51 that you mentioned?

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:7.JPG

Set the TemplateFill property of the Gallery control to following:

If(
    ThisItem.IsSelected, 
    If(
        ThisItem.TaskName="111",
        RGBA(127,127,127,1), 
        RGBA(0,0,0,0)
    )
)

On your side, you should type the following:

If(
    ThisItem.IsSelected, 
    If(
        IsBlank(DataCardValue51.Text),
        RGBA(127,127,127,1), 
        RGBA(0,0,0,0)
    )
)

Or

If(
    ThisItem.IsSelected, 
    If(
        IsBlank(ThisItem.RelatedColumn),/* <- RelatedColumn represents the column (in your data source) your DataCardValue51 Text Input box related to*/
        RGBA(127,127,127,1), 
        RGBA(0,0,0,0)
    )
)

 

Best regards,

Kris 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
PaulSa
Level: Power Up

Re: Powerapps gallery

Maybe you should go into 'Fill' property and type something like :

[Fill] -> If(IsBlank(Datacardvalue51),RGB(0,0,0,1),RGB(127,127,127,1))

by default, powerapps will point to the value51 of each card.

cagdas
Level: Powered On

Re: Powerapps gallery

All items background color was gray. I want gray if the selected item is full of data51

 

Picture Below

Highlighted
PaulSa
Level: Power Up

Re: Powerapps gallery

I am not sure to understand.

 

Maybe you can go into the properties of NextArrow1, and change the Fill property to:

If (IsBlank(ThisItem.data51), RGBA(255,255,255,1), RGBA(172,172,176,1))

Community Support Team
Community Support Team

Re: Powerapps gallery

Hi @cagdas,

Could you please share a bit more about your scenario?

Do you want the background color of the selected item to be gray if the Text is full, otherwise, to be white?

Could you please share a bit more about the DataCardValue51 that you mentioned?

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:7.JPG

Set the TemplateFill property of the Gallery control to following:

If(
    ThisItem.IsSelected, 
    If(
        ThisItem.TaskName="111",
        RGBA(127,127,127,1), 
        RGBA(0,0,0,0)
    )
)

On your side, you should type the following:

If(
    ThisItem.IsSelected, 
    If(
        IsBlank(DataCardValue51.Text),
        RGBA(127,127,127,1), 
        RGBA(0,0,0,0)
    )
)

Or

If(
    ThisItem.IsSelected, 
    If(
        IsBlank(ThisItem.RelatedColumn),/* <- RelatedColumn represents the column (in your data source) your DataCardValue51 Text Input box related to*/
        RGBA(127,127,127,1), 
        RGBA(0,0,0,0)
    )
)

 

Best regards,

Kris 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,707)