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 / Parking App Show Butto...
Power Apps
Answered

Parking App Show Button of Reservation For Specific Time

(0) ShareShare
ReportReport
Posted on by 50

Good morning to forum,

I have a Parking App, that using a button for reservation.

I want my button to be visible between 7 am untill 21 pm.

Any suggestion?

Thanks for advance.

Categories:
I have the same question (0)
  • Verified answer
    AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @ipapoutsidis,

     

    Here is what I have done to achieve this:

    On my OnStart property:

     

    Set(varTime, Text(Now(), "hh:mm:ss"));

     

     

    I have a label that is set to VarTime.

     

    A timer control with the following properties configured:

    Duration: 1000

    Auto Start: true

    Repeat: true

     

    And for your button Visible property, I have:

     

    TimeValue(varTime) > TimeValue("07:00:00") && TimeValue(varTime) < TimeValue("21:00:00")

     

     

    Please note that the timer control will only start when previewing/playing the app. It will not work if you are just holding the alt key in the app studio mode.

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • ipapoutsidis Profile Picture
    50 on at

    where did you configured the timer control?

  • ipapoutsidis Profile Picture
    50 on at

    and for visible the parameters does not work

  • ipapoutsidis Profile Picture
    50 on at

    It is working my friend I have to restart the app!

    But about the timer control where did you add it?

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @ipapoutsidis 

    This is what I have

    AARON_C_1-1699531574852.pngAARON_C_0-1699531534029.png

     

    The timer control can be found under the Input section when inserting a control.

  • ipapoutsidis Profile Picture
    50 on at

    got it thanks friend... As always the forum Rocks.....

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @ipapoutsidis 

     

    Yes because the time in the label control is set on the OnStart property of the App. 

     

    For the label and timer control, once you have it set up, you can change the Visible property for them to false.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard