For this example, we will be creating a Locker & Badge Assignment Widget, designed to display personalized locker and badge details for each user configured in the associated tracker. It combines HTML formatting with dynamic field variables and conditional display logic to ensure only the correct user sees their information.
This example assumes that a Tracker is already populated with Locker and Badge Assignments, as well as other user information.
Filtering the Data for Logged-in Users
With this table configuration, if Stella, our example user, is the logged-in user, she will only see her own locker and badge assignment.
Publishing the Widget
HTML Template with Dynamic Fields
Use the following HTML snippet to structure your widget. This includes dynamic variables and the %{decrypt} function to securely display encrypted fields such as badge_id and locker_code.
The widget will now dynamically reflect the user's information upon log in, as long as they have an entry in the tracker. If there is no information for the logged in user, the widget will be blank.
To make sure each logged in user only sees their own details, we will configure a column for our Employee column.
We will now create a filtering the tracker information so it only shows data for the currently logged-in user.
Once configured, so it can be easily reused or added to relevant dashboards.