Populate date from calendar view to custom form

Jay Holman 61 Reputation points
2022-05-04T15:45:40.107+00:00

I have a custom form for my SP list. I have created a modern calendar view on the list. When selecting +New on any given date, the custom form opens but does not populate the date selected. I noticed that the standard form does populate the date selected. Is there a parameter I can pass to the custom form so it defaults to the date selected?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,559 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,781 Reputation points Microsoft External Staff
    2022-05-06T10:02:41.167+00:00

    @Jay Holman

    Per my test, default view and calendar view use the same custom form. You could design form as following picture shows.

    199537-image.png

    Result:

    199602-image.png


    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.