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

(1) ShareShare
ReportReport
Posted on by 158

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

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,033

#2
Valantis Profile Picture

Valantis 632

#3
11manish Profile Picture

11manish 607

Last 30 days Overall leaderboard