Saturday, March 17, 2012

How to order form items in DispForm, EditForm and NewForm of a List.

We can order the item in the AllItems view by creating views but how to order the item in the DispForm, EditForm, NewForm.

I had a Holiday List with the column called
  • Holiday
  • Date
  • Optional
  • Edit
Our NewForm.aspx which is used to add new holiday, takes the Holiday name first, then date and then whether it is optional or not.(As shown in the screen shot below.)
Holidays List NewForm.aspx Form

But our requirement was to take the details from the user in the following order (Optional, Holiday, Date). Hence to do this
I went into the List Setting and set the column ordering. This changes the ordering of the columns in the all the different forms of the List.(See the screenshots below)

a)
Under List Setting click column ordering

b)
Choose the new Order

After changing the Position the forms will start displaying the fields in the order as set.
If you still are facing some issue please refer to the following post. http://social.technet.microsoft.com/Forums/en/sharepointgeneral/thread/a4c02c99-3a17-422b-9a88-7303dcc5f8a0

No comments:

Post a Comment