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 / If certain radio butto...
Power Apps
Answered

If certain radio button choice is selected, then make text input required

(0) ShareShare
ReportReport
Posted on by 57

Hello I'm kind of stomped on a feature that I would like to put in my application.

I made a Checklist App. My app has a gallery for a form, right now for all questions in the gallery users have to select radio choice "Complete" or "Uncomplete" to submit the form.

But now I would like for users that select "Uncomplete" have to note down (text input) the reason as to why that task is "Uncomplete". 

This is my code for Submit Button display mode: 

If(
    CountRows(
        Filter(
            QuestionsGal1.AllItems,
            QuestionChoice.Selected.Value = Blank()
        )
    ) = 0,
    DisplayMode.Edit,
    DisplayMode.Disabled
)
 
Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @hoaanhnguyen,

    If you want to disable the button when radio button is uncompleted

    If(
     CountRows(
     Filter(
     QuestionsGal1.AllItems,
     QuestionChoice.Selected.Value ="Uncomplete"
     )
     ) = 0,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )
  • Verified answer
    Ash13 Profile Picture
    576 on at

    Hi @hoaanhnguyen 

    To make the Submit button disabled if there is an "Uncomplete" answer but no entry in the text box, you can add another condition to your If():

    If(
     CountRows(
     Filter(
     QuestionsGal1.AllItems,
     QuestionChoice.Selected.Value = Blank()
     )
     ) = 0
     &&
     If(
     CountRows(
     Filter(
     QuestionsGal1.AllItems,
     QuestionChoice.Selected.Value = "Uncomplete"
     )
     ) > 0, !IsBlank(TextInput.Text),true)
    
    
    ,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

  • hoaanhnguyen Profile Picture
    57 on at

    Thank you that worked 😄

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard