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 / Disable Button won't s...
Power Apps
Unanswered

Disable Button won't stay disable - Radio Button selection is breaking it

(1) ShareShare
ReportReport
Posted on by 79
Hi,
I have 2 textboxes and 1 radio button in a Form. Submit button is outside the form. All three fields are required. I'm updating the record on Submit button click using Patch function onselect. I have marked all three fields as required = true.
On Submit button's DisplayMode, I have added below code. Submit button stays disabled if two text boxes have values but radio button is not selected. However, Submit button Enables as soon as I select one of the radio button options even though other textbox(s) are still empty. What am I doing wrong?
 
If (
    IsBlank(DataCardKey16_1.Text) ||
    IsBlank(Radio3_1.Selected) ||
    IsBlank(DataCardKey9.Text),
DisplayMode.Disabled,
DisplayMode.Edit
)
Categories:
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    14,560 Super User 2025 Season 2 on at
    hey
     
     
    can u try this:
    If(
        IsBlank(DataCardKey16_1.Text) || 
        IsEmpty(Radio3_1.Selected) || 
        IsBlank(DataCardKey9.Text), 
        DisplayMode.Disabled, 
        DisplayMode.Edit
    )

    if it helped please mark as verified anwer
     
     
    cheers
  • WarrenBelz Profile Picture
    152,853 Most Valuable Professional on at
    You may have an empty string in there - assuming that the Radio control output is .Value (change if not the case), try this
    If(
       Len(DataCardKey16_1.Text) = 0 || 
       Len(Radio3_1.Selected.Value) = 0 || 
       Len(DataCardKey9.Text) = 0, 
       DisplayMode.Disabled, 
       DisplayMode.Edit
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard