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 Button won't s...
Power Apps
Suggested Answer

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,629 Super User 2026 Season 1 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
    156,127 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

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

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard