Using Forms In Microsoft Teams Applications [Building Power Apps In Microsoft Teams Ep. 4]
In the fourth episode of the "Building Power Apps in Microsoft Teams" series, Matt Peterson, a trainer at Pragmatic Works, demonstrates how to integrate a form within a Microsoft Teams application using Power Apps. This form is designed to collect check-in and check-out data. Whether you're building a similar app or looking to integrate forms for other purposes, this guide covers the essential steps.
Getting Started with Power Apps in Microsoft Teams
Matt begins by guiding the viewers through Power Apps, starting with the creation of a new app in a Microsoft Teams environment. He explains how to select the appropriate team and app from the Power Apps dashboard.
Adding a Form to Collect Data
Once in the app, the next step is adding a form. This form will collect data for check-ins and check-outs. Matt adds a basic form by selecting the Insert Ribbon and searching for an Edit Form. Initially, the form will be set up to edit records, but the tutorial focuses on creating new records instead.
Connecting the Form to Data
The next step involves connecting the form to data. Matt explains how to link the form to the data source by adding the Student Check-ins and Check-outs table, which was created in a previous video. This step ensures that the form will collect the correct data from the appropriate table in the app.
Customizing Form Fields
Matt demonstrates how to customize the fields displayed in the form. This includes adding fields for Student, Location, Teacher, and Comments, while also removing unnecessary fields. He also explains how to control the layout, showing how to toggle between two-column and vertical layouts and rearrange fields by simply dragging and dropping them into place.
Switching the Form Mode
By default, the form is set to Edit mode, but Matt wants to create new records, so he switches the form's mode to New. This change allows users to input new data rather than modify existing entries.
Unlocking and Modifying Data Cards
To further customize the form, Matt unlocks data cards. He shows how to edit the Student field to display the student's first name instead of the primary name identifier. Additionally, he explains how to set the default values for fields like the Check-in Date and Time using the Now function to ensure the app always records the current timestamp.
Enhancing User Experience
Matt then improves the user interface (UI) by adding conditional formatting to the gallery and customizing the drop-down fields. By linking the Student field to the current selection in the gallery, users are presented with relevant data without the need for manual searches.
Setting Up Cancel and Save Buttons
To complete the form, Matt adds two buttons: one for canceling and one for saving the data. He explains how to configure the Cancel button to reset the form and remove any data entered by the user. The Save button is configured to submit the form data to the database, but only if the record is successfully created. This ensures that users aren't left with unsaved changes.
Handling Form Submissions
After saving a record, the form automatically switches back to the New mode, allowing the user to create another record. Additionally, Matt shows how to add a success notification to confirm that the data was saved successfully. This message informs the user of the new check-in record and displays the student's name.
Final Touches
Matt wraps up the session by providing a brief overview of what was covered. He emphasizes that while this video focuses on basic form functionality, there are many advanced features to explore in future episodes, such as galleries and record editing capabilities.
Stay tuned for more videos in this series to deepen your understanding of building apps in Microsoft Teams and utilizing Power Apps for powerful data collection and management.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Microsoft Teams and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.
Sign-up now and get instant access
ABOUT THE AUTHOR
Matt Peterson is a Trainer for Pragmatic Works specializing in the Power Platform. He graduated from the University of North Florida in 2006 and comes with 15 years of teaching experience in high school algebra. Matt earned the accomplishment in 2013 of being named the Florida Gifted Teacher of The Year. His primary focus is helping our customers learn the ins and outs of Power Apps and Power BI.
Free Community Plan
On-demand learning
Most Recent
private training

Leave a comment