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

TextBox Fill on Gallery Changing Colors Unexpectedly

Hello,

I have an app with a gallery of 39 questions. The expected behavior is for the Fill of the question TextBox to change based on the selected value of a Radio Button.

 

The issue, when I test, for the first few questions I answer, it works great (green for pass, red for fail) as you can see in my first picture.

picture1.JPG

In the second picture you can see how some of the questions start to turn green even without me selecting anything from the Radio Buttons (question 7).

picture2.JPG

I've tested this out in the following ways:

  • Chrome
  • Edge
  • Clearing the browser cache
  • Windows PowerApps Desktop
  • iPhone
  • PowerApps Studio

All of my testing results in the same issue. I can't seem to find a consistant pattern of the issue either. Sometimes it starts to behave weird after 5 questions, of sometimes after 10 questions. Green or Red, it doesn't matter.

 

I thought this behavior was very weird and was hoping that someone has had a similar issue and resolution. Maybe I'm doing something wrong all together.

 

Thank you in advance to anyone who can shed some light or guidance on this.

 

- Justin

4 REPLIES 4
shailendra74
Level 10

Re: TextBox Fill on Gallery Changing Colors Unexpectedly

Hi @Justair07 

 

Did you try Switch and set the fill property of the control:

 

Switch(Radio1.Selected.Value, "Pass", RGBA(0, 255, 0, 1),"Fail",  RGBA(255,0,0,1), RGBA(0, 0, 0, 0))

RGBA(0, 0, 0, 0) -- Default

 

Refer below link for Switch:

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if

 

Thanks.

Justair07
Level: Powered On

Re: TextBox Fill on Gallery Changing Colors Unexpectedly

@shailendra74 

Thank you for the suggetion. I gave it a try, unfortuntely I'm still returning the same issue. 😞

Highlighted
shailendra74
Level 10

Re: TextBox Fill on Gallery Changing Colors Unexpectedly

Hi @Justair07 

 

Can you share the code and screen shot.

 

Thanks.

Justair07
Level: Powered On

Re: TextBox Fill on Gallery Changing Colors Unexpectedly

Hi @shailendra74 

 

Here is the screenshot & code:

 

Switch(ARadio.Selected.Value, "Pass", RGBA(0, 255, 0, 1),"Fail",  RGBA(255,0,0,1), RGBA(0, 0, 0, 0))

Capture.JPG

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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