cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Leave Request template - Add Selection for Full Day(s), Half Day AM, Half Day PM

Hi,

On the SelectDateScreen I would like to add a button control to allow staff to apply for either full day(s) or half days AM or PM. I would need the calculation for requested days to be applied for the choice selected and if possible then for the dates to be copied to the staff members outlook calendar. Any help on the coding would be greatly appreciated.

Thanks, Sheila.

1 REPLY 1
Highlighted
Regular Visitor

Re: Leave Request template - Add Selection for Full Day(s), Half Day AM, Half Day PM

In the confirmation screen where the calculation is done modify the formula like:

                StartDate: DateAdd(LeaveStartDatePicker.SelectedDate, If(CheckboxToAmOnly.Value, 12,0),Hours),
                EndDate: DateAdd(LeaveEndDatePicker.SelectedDate, If(Checkbox1FromPmOnly.Value,-12,0) + If(Radio1.SelectedText.Value="Full Day",0,-12),Hours ),
                Half1Day: Radio1.SelectedText.Value,
                HalfDayAmValue: CheckboxToAmOnly.Value,
                HalfDayPmValue: Checkbox1FromPmOnly.Value,

 

And add the adequate control to capture the half day data on the new request screen

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

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 (5,976)