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

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

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard