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 / Book a Room Template
Power Apps
Answered

Book a Room Template

(0) ShareShare
ReportReport
Posted on by 31

Hi,

 

I am trying to customize book a room template to meet our requirement. My requirement is to restrict the room booking to be available for upcoming 7 days.  Other days should be grayed out in calendar. Will anyone be able to help me to achieve this?

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @mtr_windows ,

     

    Try to modify the Button12_1 property in MonthDayGallery in AdjustDateScreen as follows.

    OnSelect property: 

    If(DateAdd(firstDayInView, ThisItem.Value) >= Today() && DateAdd(firstDayInView, ThisItem.Value) <= DateAdd(Today(),7,Days), 
     Select(Parent);
     Set(DateSelected, DateAdd(firstDayInView, ThisItem.Value, Days)))

     Color property:

    If(DateAdd(firstDayInView, ThisItem.Value) < Today() || DateAdd(firstDayInView, ThisItem.Value) > DateAdd(Today(),7,Days), ColorFade(RGBA(47,41,43,1), 80%), RGBA(47,41,43,1))

    The sample:

    Snipaste_2020-07-02_16-55-26.png

    Hope this helps.

    Sik

  • mtr_windows Profile Picture
    31 on at
    Hi, @v-siky-msft Thanks a lot for the solution. It worked 🙂
  • MACCLADD Profile Picture
    4 on at

    Can anyone help me with doing the reverse? So the earliest a user can book is +7 days in to the future i.e if i was to book one now i'd only see options available starting from 24/02/2021

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
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard