cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cagdas
Regular Visitor

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
v-xida-msft
Community Support
Community Support

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
New Member

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
Regular Visitor

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

 

Picture Below

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))

v-xida-msft
Community Support
Community Support

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,064)