cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Book a Room Template

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Book a Room Template

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

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Book a Room Template

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

View solution in original post

Highlighted
Helper I
Helper I

Re: Book a Room Template

Hi, @v-siky-msft Thanks a lot for the solution. It worked 🙂

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,095)