Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

enable next button only once all radio buttons are selected

Posted on by 4

Hi, i am trying to disable the next button until all radio buttons are selected (either yes or no) but im struggling to get this to work. in DisplayMode i have If(!IsBlank(Radio2.Selected.Value) &&!IsBlank(Radio3.Selected.Value) &&!IsBlank(Radio1.Selected.Value), Navigate(varTabSelected,1.1),Notify("Please ensure you answer all questions",NotificationType.Error))

 

what am i doing wrong? 😞

  • Verified answer
    WiZey Profile Picture
    WiZey 3,013 on at
    Re: enable next button only once all radio buttons are selected

    Hello @PurpleHaze ,

     

    It's probably giving you an error because you're not providing a "DisplayMode" in all cases in your "If()" statement. 

     

    Adding to @SpongYe formula, this one below should work:

     

    If(
     !IsBlank(Radio1.Selected.Value) && 
     !IsBlank(Radio2.Selected.Value) && 
     !IsBlank(Radio3.Selected.Value),
     DisplayMode.Edit, 
     DisplayMode.Disabled
    )
    
    And add the code below in the OnSelect of your button:
    
    Navigate(varTabSelected,1.1)

     

  • PurpleHaze Profile Picture
    PurpleHaze 4 on at
    Re: enable next button only once all radio buttons are selected

    Thanks @SpongYe its still giving me errors and now just lets me move on to the next tab without answering the questions.. 😥

  • SpongYe Profile Picture
    SpongYe 5,144 on at
    Re: enable next button only once all radio buttons are selected

    Hi @PurpleHaze 

     

    Try this code where I added DisplayMode.Disabled:

     

     

    If(
     !IsBlank(Radio1.Selected.Value) && 
     !IsBlank(Radio2.Selected.Value) && 
     !IsBlank(Radio3.Selected.Value),
     Navigate(varTabSelected,1.1),
     Notify("Please ensure you answer all questions", NotificationType.Error); 
     DisplayMode.Disabled
    )

     

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

October 2024 Newsletter…

October 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #4 How to Conntact Support…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 142,651

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,727

Leaderboard