How to add a button to quickly add item to SPO list with defaults

Plassmeyer, Jake 0 Reputation points
2025-05-20T17:07:38.87+00:00

I have created a sharepoint list for employee logout. If an employee is going to be out for the day, or is working at another campus that they don't normally work at, or if at trainings/conferences/etc, they sign out on this list.

There are 4 list columns: Name , Date Out (default value =NOW), Date In (default value = TODAY +1+ 8/24), Comments

fairly simple

I'd like to create a button on our home page that is a "Quick Signout" button. This button will add you as an item to the list to be signed out for the rest of the day. This button basically needs to create an item and add it to the list with all defaults, then add the user that trigger the button as the "Name" field, and the comment "Quick Signout".

Management requested this option as an easy way for people to sign out for the rest of the day so I was seeing if it was possible, and if it was easy to create. Thanks in advance!

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Camila Th 1,840 Reputation points Microsoft External Staff Moderator
    2025-05-21T02:15:45.52+00:00

    Dear @Plassmeyer, Jake  

    Thank you for contacting Microsoft Q&A Support. 

    After a thorough review of your request, we would like to propose two recommended methods for creating a button in SharePoint. Please note that these options are intended for basic use and offer limited functionality. Please consider the following options: 

    • Option 1: Customize a Button Web Part (No Code) 

    If you are using a modern SharePoint page, you can follow these steps: 

    1. Click the Toolbox icon in the top-right corner and select Edit the page
    2. Add a Button web part to the desired section of the page. 
    3. Customize the button as follows: 
      • Label: Modify the button text as needed. 
      • Link: Specify the URL or action (e.g., link to a form, Power Automate flow, or another SharePoint page). 
      • Alignment: Choose from left, center, or right alignment. 
      • Style: Please note that styling options are limited; customization of color and size is not available in this method. 

    This is the simplest approach, though it offers limited design flexibility. 

    Please refer to the images below for visual examples: 

    User's image

    User's image

    • Option 2: Use a Call to Action Web Part (Enhanced Visual Options) 

    The Call to Action web part provides additional visual customization, including: 

    • Background images 
    • Custom button text 
    • Enhanced visual presentation 

    To configure: 

    1. Click the Toolbox icon in the top-right corner and select Edit the page
    2. Add a Call-to-Action web part. 
    3. Customize the titledescriptionbutton label, and link according to your requirements. 

    Visual examples are provided below for reference:

     User's image User's image

    Please note that the above options represent the basic functionality available for buttons in SharePoint. If you require more advanced customization—such as triggering specific workflows or integrating with external systems—we recommend using Power Automate to create a tailored flow. 

    However, as Power Automate is outside our area of expertise, we suggest reaching out to the Power Platform Community for comprehensive guidance and support in building a solution that meets your specific needs. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.