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 / disable/enable dropdow...
Power Apps
Answered

disable/enable dropdown based on Radio button selection

(0) ShareShare
ReportReport
Posted on by

Hi all,

Scenario = There are 10 different radio1 buttons and 10 different SubRadio1 field.
When selecting YES or N/A, do not show SubRadio1, but when selecting NO, show SubRadio1.
When submit button is clicked without selecting mandatory fields, show error.

 

Currently, with my code, my form1's submit button does not work, and the errors do not show up if mandatory fields are not selected. I'm not sure how else to fix this. I'm still new to using powerapps.

 

My current code below:

RadioButton      - Radio1("yes","no","n/a") 

      > items property = ["yes","no","n/a"]

      > Update property = If(Radio1.Selected.Value = "No",true,false)

      > Required property = true

      > BorderColor = If(ShowError && IsBlank(ThisItem.Radio1),Red,Transparent)

DropDownField - SubRadio1 ('list of choice')

      > Visible property = SubRadio1.Selected.Value = "No"
      > Required property = true

Form1
      
> OnVisible = ClearCollect(RadioButtons, {Name:"Radio1",Selected:""}) 10 more RadioButtons added in this clearCollect
      >OnSuccess = ResetForm(Form1); ViewForm(Form1); Navigate(HomePage)

SubmitButton
      > OnSelect = UpdateContext({ShowError:true}); SubmitForm(Form1);

 

Categories:
I have the same question (0)
  • Heisshena Profile Picture
    on at

    Also how do I show this in the sharepoint list, as my Radio1 column in sharepoint list is a yes/no type field and I'm not sure on how to change the list to show the N/A too

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Heisshena,

    Set the SubmitButton OnSelect:

    UpdateContext({ShowError:true});
    If(IsBlank(Radio1.Selected)||IsBlank(SubRadio1.Selected),
    Notify("Required fields need input!",NotificationType.Error),
    SubmitForm(Form1)
    );

    To update the Yes/No field with NA, you have no choice but to change the column type from Yes/No to Single-line-of-text because Yes/No column always display true or false.

    Then set the Update property as below:

    Radio1.Selected.Value

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 333 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 86 Super User 2026 Season 1

Last 30 days Overall leaderboard