Forum Discussion
EM7388
May 09, 2023Copper Contributor
Compliance Tracker
On a SharePoint Site page, I would like a button that employees select as compliance to show they have read the most recent update. When the button is pressed ideally it would save the data so th...
Deleted
May 10, 2023One way to approach this is by using a SharePoint list. Here are the high-level steps to achieve this:
1. Create a new SharePoint list called "Compliance" with the following columns: "Employee Name," "Date," and "Update Name."
2. Add a button to your SharePoint site page that will allow employees to indicate that they have read the most recent update. You can use a simple HTML button that triggers a JavaScript function when clicked.
3. In the JavaScript function, use the SharePoint REST API to add a new item to the "Compliance" list with the following information:
- Employee Name: Use the SharePoint user profile API to get the name of the currently logged-in user.
- Date: Use the JavaScript Date() function to get the current date.
- Update Name: Enter the name of the most recent update.
This approach allows employees to indicate that they have read the most recent update by clicking a button on the SharePoint site page. The compliance data is saved in a SharePoint list, which the site owner can view at any time.
1. Create a new SharePoint list called "Compliance" with the following columns: "Employee Name," "Date," and "Update Name."
2. Add a button to your SharePoint site page that will allow employees to indicate that they have read the most recent update. You can use a simple HTML button that triggers a JavaScript function when clicked.
3. In the JavaScript function, use the SharePoint REST API to add a new item to the "Compliance" list with the following information:
- Employee Name: Use the SharePoint user profile API to get the name of the currently logged-in user.
- Date: Use the JavaScript Date() function to get the current date.
- Update Name: Enter the name of the most recent update.
This approach allows employees to indicate that they have read the most recent update by clicking a button on the SharePoint site page. The compliance data is saved in a SharePoint list, which the site owner can view at any time.