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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Validating Radio butto...
Power Apps
Answered

Validating Radio button and Chcek box

(0) ShareShare
ReportReport
Posted on by 179

Hi All,

I want to change a label text color based on the radio button selected or not. I have a radio button  for vehicles as follows

Car

Van 

Bus

When the submit button clicked, If non of them are selected I want to make the Vehicle label text colour make Red.

Same I have checkboxes as follows for Vehicles colours

Red

Green

Yellow

When the submit button clicked, If none of them are selected I want to make the Vehicles colours label text colour make Red.

Can someone please help me. 

 

Thanks.

 

Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at

    HI @Vidanaw ,

     

    Yes, you can and it's quite simple.

     

    I wrote an article about how to update automatically fields. Instead of replicating that here, just go to:

    https://manueltgomes.com/featured/powerapps-update-property-automatically/

     

    And you'll find what you need.

     

    Hope this helps you.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Vidanaw ,

    Do you want to change a Label text color based on the Radio button or Checkbox control?

     

    I have made a test on my side, please consider take a try with the following workaround:

    Set the OnSelect property of the "Submit" button to following:

     

    If(
     IsBlank(Radio1.Selected.Value),
     Set(ShowColor1, true),
     CheckBox1.Value=false && Checkbox2.Value=false && Checkbox3.Value=false,
     Set(ShowColor2, true),
     ...Type your Submit formula here ...
    )

     

     

    Set the Color property of the Vehicle label text to following:

    If(ShowColor1, RGBA(255, 0, 0, 1), RGBA(0, 0, 0, 1))

    Set the Color property of the Vehicles colours label text to following:

    If(ShowColor2, RGBA(255, 0, 0, 1), RGBA(0, 0, 0, 1))

     

    Set the OnChange property of the Radio button to following:

    Set(ShowColor1, false)

    Set the OnCheck property of your three Checkbox controls to following:

    Set(ShowColor2, false)

    Set the OnVisible property of the current screen to following:

    Set(ShowColor1, false);
    Set(ShowColor2, false)

    Please take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Vidanaw Profile Picture
    179 on at

    Perfect, exactly what I have done.

    Thank you very much.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard