web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Suggested answer

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

(1) ShareShare
ReportReport
Posted on by 64
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
)
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    14,353 Super User 2025 Season 2 on at
    Disable Button won't stay disable - Radio Button selection is breaking it
    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
    151,866 Most Valuable Professional on at
    Disable Button won't stay disable - Radio Button selection is breaking it
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard

Featured topics