In my previous post I outlined a few approaches to validation in SharePoint forms. In this post, I’ll give some simple examples of how you might validate some date inputs. For this example, I’m using a little Paid Time Off (PTO) application I built for one of my clients. The basic idea was that the employees …
Tag Archive: EditForm.aspx
Permanent link to this article: http://sympmarc.com/2009/05/13/validation-on-sharepoint-forms-part-two/
May 13 2009
Validation on SharePoint Forms – Part One
There are many occasions where you might like to do some validation on NewForm.aspx and/or EditForm.aspx in SharePoint beyond the simple column by column validation which the form provides automagically. For instance, if you have two dates, you might want to ensure that the second is after the first, or you may want the entry …
Permanent link to this article: http://sympmarc.com/2009/05/13/javascript-validation-on-editform-aspx-part-one/
Jan 13 2009
SharePoint Document Library Headscratcher
Here’s a head-scratcher for you… In a SharePoint Document Library where you have Versioning and Check In/Check Out enabled, when you first upload a document, the “save” button on EditForm.aspx is labeled “Check In” and saves and also checks the document in (good). On a subsequent edit of the metadata (properties), you’re forced to check …
Permanent link to this article: http://sympmarc.com/2009/01/13/sharepoint-document-library-headscratcher/
Dec 30 2008
Setting Multi-Select Widths in a SharePoint EditForm.aspx Using JavaScript
<UPDATE date=”2009-01-25″> I now have a function in my jQuery Library for SharePoint Web Services called SPSetMultiSelectSizes which accomplishes this in a more robust way, taking into account the font, font size, etc. </UPDATE> When you have a multi-select lookup column in a list, SharePoint provides you with a control that shows two select boxes next to each …
Permanent link to this article: http://sympmarc.com/2008/12/30/setting-multi-select-widths-in-a-sharepoint-editformaspx-using-javascript/
May 08 2008
Get a People Picker’s Current Value on a Form
There’s a nice article over at the SharePoint Designer Team Blog about how to manipulate a List Form Field (AKA Data Form Field) using Javascript. It gives some great methods to accomplish this, but if you’d like to get the current value of a People Picker on a form (for validation purposes, most likely), the info …
Permanent link to this article: http://sympmarc.com/2008/05/08/get-a-people-pickers-current-value-on-a-form/