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.