Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can i pre-populate newitem.aspx form with today's date. When user adds new item i want to prepopulate date field with todays date.

<SharePoint:DateTimeControl ID="dtcDateofInsp" runat="server" IsRequiredField="true" DateOnly="true"></SharePoint:DateTimeControl>

Thank You

share|improve this question
add comment

2 Answers 2

The easiest method is to set the column in the Sharepoint UI to use Today's Date as the default value for the column.

share|improve this answer
    
Pirate Eric, I created this list using visual studio, therefore changes doesn't get applied using SharePoint UI. –  octopus Mar 27 '12 at 21:01
1  
What Eric means is that you define you field like this: <Field ...><Default>[today]</Default></Field> –  Per Jakobsen Mar 28 '12 at 6:54
add comment

have you tried Jquery ? here is other link for List form customization which will open up all possibilities for you enter link description here

Thanks Ronak

share|improve this answer
    
No i haven't yet tried Jquery, Do you anything useful in you hand? –  octopus Mar 27 '12 at 21:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.