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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard