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 / How to Disable some of...
Power Apps
Answered

How to Disable some of the Radio Button when another Radio Button is Clicked

(2) ShareShare
ReportReport
Posted on by 162

How can I disable some of the radio buttoncChoices in 2nd Radio whenever I choose something in 1st radio button.

 

Basically, I want to change the second radio button (Disable some of it, if possible) whenever I select something on the first radio button.

 

Intoxicated_1-1672910607181.png

 

For example, I select Head Office. the Second Radio Button (clickable choices) should only be:

        Office Equipments and Computer Equipments.

 

 

Note: I dont know if its important, but the two Radio Button are from different Sharepoint List.

 

Radio1: 

 

 

Item = Choices([@AdminCustody].JobSiteCategory)

 

 

Radio2: 

 

 

Item = Choices([@'Item MasterFile'].Category)

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @Intoxicated,

     

    I'm not sure how to set radio button options enabled/disabled but, alternatively, the second radio button options could be changed depending on the first radio button option selected. For example:

    If (radOptions1.SelectedText.Name = "Head Office",
     ClearCollect(colRadioButtonOptions,
     {
     Name:"Office Equipments"
     },
     {
     Name:"Computer Equipments"
     }
     )
    );

     

    Then set the second radio buttons Items property to colRadioButtonOptions.


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

  • Intoxicated Profile Picture
    162 on at

    I dont know if Its possible to change the RadioButton (Item) function since theres already 

    Choices([@AdminCustody].JobSiteCategory)

    in Item Function.

    Intoxicated_1-1672913281115.png

     

    It also gives Error.

     

    Also, All of the Items inside the Radio Button is already predefined via Sharepoint List *Type(Choice).

    Intoxicated_2-1672913315801.png

     

    Intoxicated_4-1672913480084.png

     

     

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Yes, the new dynamically-built collection (colRadioButtonOptions) would replace the existing Choices(...) for the Items property.

     

    My example code will need changing to make it work for your solution.


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

  • Intoxicated Profile Picture
    162 on at

    Unfortunately, It still spits out error. I've already adjusted the changes that is needed. 

    Intoxicated_0-1672968089072.png

     

     

    Im stucked.

     

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    I cannot see the error details but guessing that the ClearCollect() method is throwing the error as the code is attempting to ClearCollect() directly against the choice.

     

    Try using the code I posted originally, which creates a new collection called colRadioButtonOptions.


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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard