1

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

1

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

2
  • Pirate Eric, I created this list using visual studio, therefore changes doesn't get applied using SharePoint UI. Mar 27 '12 at 21:01
  • 1
    What Eric means is that you define you field like this: <Field ...><Default>[today]</Default></Field> Mar 28 '12 at 6:54
0

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

1
  • No i haven't yet tried Jquery, Do you anything useful in you hand? Mar 27 '12 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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