Posts

Showing posts with the label list

Sharepoint List: Days Elapsed or Countdown

Image
SharePoint List: How to Display Days Elapsed or Countdown  Problem :Have you thought about introducing a countdown or even days elapsed as a feature in a sharepoint list? Solution: Well i have a solution for you using javascript. It does get a little involved with code but very easy to implement. 4 Step Implementation: Step 1 : Create the list in sharepoint and name it what you like Add two columns: Column 'Today" type = Date and Time Column 'Days Elapsed' type = calculated Step 2 : Under list settings, go to column you have just added called Days Elapsed and enter the following formula: =ROUND(Today-Created,0)&" days" --> Output Data Type as a Single Line of Text. Step 3 : Some code --> Copy the code below and paste it into a nodepad, go through the code and change the name of your list: Look for LIST NAME , thats where you will change the name to your list name and also change the column name for "Today" if you named it...

SharePoint: How to set up a pop up message in a list

Image
SharePoint: How to set up a pop up message in a list Would you like to display a message to the user once they have selected Save in a SharePoint list.We will be performing this task using the javascript PreSave function in newform.aspx. Well this is how you do it. Watch this how to video: Potential Issue: If you have required fields in the form, the presaveaction() function will display pop up message regardless of required field. You will need to perform a validation for required fields. This will be a separate post later. OR Follow these instructions: Step 1: In SharePoint site, go to your list, then right-click Add New Item. Step 2: Select Open in  New tab  Step 3: Go to the newly opened tab and then go to Site Actions (Top Left) then select Edit Page. Step 4: You will then select Add a Web Part  Step 5: Once you have selected Add a Web Part, at the top you will then select Content Editor, then click add. Step 6: Select t...