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 / Condition before navig...
Power Apps
Answered

Condition before navigate to another screen

(0) ShareShare
ReportReport
Posted on by 22

Capture.PNG

 

I need to add a condition with Continue button that selection is mandatory for one desk

Thank you

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @rsamir 

    Please consider changing your Formula to the following:

    If(CountRows(yourGallery.AllItems, yourCheckboxName.Value)>0, Navigate(Confirm))

    I hope this is helpful for you.

  • rsamir Profile Picture
    22 on at

    Thank you for your answer

    There is no number 

    This app is for booking a desk before coming the company 

    So I have sorted from Desk 1 to Desk 22 (we have 22 available desks)

    I figured out that some users can continue without selecting any desk 

    So I want to make the selection mandatory before pressing continue then will be at confirm screen

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @rsamir 

     

    If(CountRows(yourGallery.AllItems, yourCheckboxName.Value)>0, Navigate(Confirm))

     

    Is the formula you need!

     

    I assume this is a Gallery 

     
     
     

    So, just put the name of that Gallery and the name of the checkbox control you have in the gallery into the formula above.  It will only navigate if at least one desk is checked - as you wanted.

     

  • rsamir Profile Picture
    22 on at

    I'm afraid that something missing from my side

    rsamir_0-1614621877330.png

     

    Am I correct?

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @rsamir 

    Your formula is incorrect.  The one I provided is what you need:

    If(CountRows(yourGallery.AllItems, yourCheckboxName.Value)>0, Navigate(Confirm))
  • Verified answer
    rsamir Profile Picture
    22 on at

    I used this one and it works now

    If(CountRows(Filter(galleryAvailDesk.AllItems, cbDeskSelect.Value))>=1, Navigate(Confirm))

     

    Thank you so much

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard