Solved

SharePoint Custom Form Date Selection

Posted on 2012-04-11
4
309 Views
Last Modified: 2012-07-07
I have a custom newform (NewForm_Custom.aspx) for my custom list application and one of the listform fields is a date field which has a calendar selection.
 
The question I have is..  Is there a way to only allow users to select Fridays off the calendar?
0
Comment
Question by:Matt Pinkston
  • 2
  • 2
4 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 37835806
You could have a javascript function that checks the date value selected and then checks the WeekDay to see if it equals Friday, if not it would clear the select and alert the user but it sounds painful from a user point of view.

Click the date picker
Select a date
Read the pop up alert
Clear the alert
Re-open the date picker
select a date

I know of no way to disable days within the date picker control
0
 

Author Comment

by:Matt Pinkston
ID: 37837513
one would think there should be a way to limit the dates that can be selected via parameters
0
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 37839842
0
 

Author Comment

by:Matt Pinkston
ID: 37844558
nice idea but this would be difficult to implement I would have a list of disables days that was HUGE.  is there nothing that says just put Fridays on the calendar???
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question