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

Booking system that greys out or deletes time slots taken

Hi all, 

 

Is it possible to grey out or remove time slots that are already been used - on a form in power apps? 

 

So the scenario: 

 

the form is going to be simple, containing a name field (free type), time and date fields. 

 

So if I was filling out this app my name is Joe Bloggs, I have selected the time slot of 11:00am and the date 11th august. The next person filling it out cant choose the same time on the same date. 

 

Is this something that can be achieved? 

 

Thanks in advance, this will be a life saver!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Booking system that greys out or deletes time slots taken

Hi @AB1 ,

A Control is an input field such as a Date Picker, Text Input, Combo Box etc. You use the actual name of that control in place of ControlName below. Text boxes are

ControlName.Text

Date Pickers are

ControName.SelectedDate

Drop-Down/ ComboBoxes 

ControlName.Selected.xxxx

 where xxxx depends on the Items property of the control.

When you type ControlName.Selected. (note second dot), valid values will come up underneath. For some guidance of what they mean: -

  • If your Items are Choices(ListName.FieldName) - a Choices or Lookup field), the reference will be ControlName.Selected.Value
  • If they are Distinct( . . .  .), it will be ControlName.Selected.Result
  • The other option is when they are based on a field value in a list (other than Distinct), then it will be ControlName.Selected.FieldName (actual field name)

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Booking system that greys out or deletes time slots taken

Hi @AB1 ,

You can use the DisplayMode of the control and base it on a condition.

In its simplest form, on the control itself

If(
   !IsBlank(YourControlName),
   DisplayMode.Disabled,
   DisplayMode.Edit
)

but this would disable it the moment something was entered. You however might want to base it off another condition that would indicate someone had completed the line.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Highlighted
Helper III
Helper III

Re: Booking system that greys out or deletes time slots taken

Hi @WarrenBelz ,

 

So would this for set on the time field and the date field? Of the form that I have inputted into power apps?

 

what would my control name be? my email? 

 

Sorry about the questions im stil a novice!

 

Thanks in advance

Highlighted
Super User
Super User

Re: Booking system that greys out or deletes time slots taken

Hi @AB1 ,

A Control is an input field such as a Date Picker, Text Input, Combo Box etc. You use the actual name of that control in place of ControlName below. Text boxes are

ControlName.Text

Date Pickers are

ControName.SelectedDate

Drop-Down/ ComboBoxes 

ControlName.Selected.xxxx

 where xxxx depends on the Items property of the control.

When you type ControlName.Selected. (note second dot), valid values will come up underneath. For some guidance of what they mean: -

  • If your Items are Choices(ListName.FieldName) - a Choices or Lookup field), the reference will be ControlName.Selected.Value
  • If they are Distinct( . . .  .), it will be ControlName.Selected.Result
  • The other option is when they are based on a field value in a list (other than Distinct), then it will be ControlName.Selected.FieldName (actual field name)

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

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

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,641)