在SharePoint Online列表上设置结束日期

问题描述:

例如,我希望用户从下拉列表中选择日期,或者从日期字段或其他任何我不希望他们在2018年3月之后选择任何内容的字段中选择某个选项.

I would like my users to select a date from a drop down or some option from the date field or any other field where I so not want them to select anything after March 2018 for example. 

我可以选择selected字段,但我必须手动键入所有日期,然后再排除周末等.

I could choose chose field but i would have to manually type all dates and then how would i exclude weekends etc. 

只是一个字段,因此用户可以选择不超过2018年3月31日的日期.

Just a field so the user can select a date not to exceed March 31st 2018. 

好心的建议/帮助-有人吗?

Kindly advise/help - anyone?

您可以在新的和编辑页面中添加JavaScript,以防止根据日期成功保存.我相信有人会在您需要时提供示例代码.
you can add JavaScript in the new and edit page to prevent save success according to the date. I believe someone will provide the example code if you need it.