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

Notifications

Announcements

Community site session details

Community site session details

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard