After authenticating to the site, and entering “InOutBoard” as the new list name, we see the default InfoPath form. Add a field called “Presence” and change the choices “In” and “Out” only.
Next, we will simplify the form to an easy two-button layout using the InfoPath designer. Our new buttons will each have a rule that runs on click that will handle all the work for us, including making sense of the otherwise useless title field.
- Set a field’s value: Presence = “In”
- Set a field’s value: Title = concat(userName(), " In at ", now())
- Submit using data connection
- Close this form
Configure a similar set of rules for the Out button, changing the two occurrences of the word “In” to “Out” and publish the form.