I'm creating an app for tracking visitors to our various facilities. I added a single SharePoint online list. There are 3 special columns that I need help with.
- a choice field for Building which is a required field
- a Yes/No field for Check out
- a date/time column for check-out date & time
I'm planning on creating separate apps for each building. Right now I just have the one app for our Corporate Office. They will all have a different Welcome screen with a picture of the building and a "Welcome to ____________ (name of building). The welcome screen will have 2 buttons: check-in, check-out. The Check-in button does a newform. (The create date/time field serves as the check-in date/time field.)
On the Newform, I want it to default the building value when new list items are added. But I can't figure out how to assign the default value to the building column. Originally, the combobox had Parent.Default for the Default property. I tried changing it to "Corporate Office" but that didn't work. I then tried If( IsBlank(Parent.Default),"Corporate Office", Parent.Default) but I'm getting invalid argument type (Record). Expecting a text value instead.
So #1 I need help with setting a default value.
The check-out button will go to a browse screen that is filtered to display only users where Checkout is false (yes/no field) and Building="Corporate Office". (This is working) You then select a person on the list and it brings up an edit form. All the user has to do is change the slider on the check-out button and save. When they set the slider to yes/on, I would like it to populate the checkout date/time column automatically.
So #2, I need direction on how to go about automatically populating the date/time when the slider is turned on.
My preference is to display the check out time on the screen in case the visitor left by a different door and the receptionist has to guess on the time, thereby overriding the automated check out time value. If this isn't feasible, I'll leave the check out date/time off the screen and create a flow to update the time. The receptionist will have to access the list to correct the time (which is probably not likely to happen.)
The actual SharePoint list will be used for exception handling, querying who has visited, finding visitors regardless of building they are in, etc.