Blue Theme Orange Theme Green Theme Red Theme
 
Nevron Chart
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Nevron Chart
Search :       Advanced Search »
Home » SharePoint » Customize share point List Form using XSLT

Customize share point List Form using XSLT

In this article I am showing how to customize share point default form look and feel using XSLT.

Author Rank :
Page Views : 4608
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 


HTML clipboard

In this article I am showing how to customize share point default form look and feel using XSLT. A default task list NewForm.aspx is as shown below. I will show you how to change the fields in two columns.

1.

Image1.gif


2. First step is to open your site in share point designer then find out the list then the page NewForm.aspx. .Don't forget to check out the Newform.aspx page as shown below

Image2.gif

3. Open the NewForrm.aspx,Just select the List web part as shown below

Image3.gif

4. Delete the List web part by pressing your "Delete" key. The form now will look like below

Image4.gif
 
5. Please make your selection is still on the portion marked RED above.

6. Go to Insert then SharePoint Controls and select Custom List From form the menu

Image5.gif
 
7. You will get a popup as shown below

Image6.gif
 
8. Please make sure you have selected your list and content type from the first and second drop down. In my case I selected my Task list and Task content type.

9. From the next option button select New Item From as shown above. You have to repeat the same step for Edit and View forms also.

10. Now your list be converted to a Custom list from as shown below

Image7.gif
 
11. You can now select any column or row as per your wish.

12. Right click on Title field then select Row as shown below

Image8.gif

13. Then the row containing Title and the text box for entering Title be selected in the code view also.

14. I want to align Title and priority fields on the same row so I am removing the Second row starting and first row closing to put this two in one row. Please find the screen shot below


Image9.gif
 
15. Please repeat the same step for the remaining columns also as shown below

Image10.gif
 
16. Save your changes then check in NewForm.aspx.

17. Now you open your New form in Task list .You can see the columns are arranged like shown below

Image11.gif

18.
This type of customization is useful if the list contains large number of fields.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Destin joy

You can reach him @ Destin.Joy@hotmail.com

Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the Top 5 .NET Memory Management Fundamentals
To write the best .NET code, you need to know exactly how the .NET framework really manages memory. Ricky Leeks presents the Top 5 fundamental facts of .NET memory management. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
 Comments
All site users extend by Laura On August 31, 2010
Hello Destin,
Thank you for your post. I find it very usefull.
What if I want to do this kind of changes visible to all site users? Would you give me an advice in this sense?
Thank you in advance.
Laura
Reply | Email | Modify 
Re: All site users extend by Destin On September 1, 2010

Thank you Laura, for your compliments!!!


I hopes you done the changes after check out.After your changes just save the changes and Check in your page say Newform.aspx Thats all....it will be visible to all people.Let me know if you need any further help

Thanks
Destin

Reply | Email | Modify 
Re: Re: All site users extend by Laura On September 1, 2010
Thank you, Destin!
Logically, this action must close the circle!
Silly me!

I couldn't try it though, something happening when i try to check in a modified form.
Sharepoint designer tells me that the file is missing and/or is not check out anymore.
Do you know what does this message means in fact? I didn't have the properly rights, or what?

Thank you again!
Laura
Reply | Email | Modify 
Re: Re: Re: All site users extend by Destin On September 2, 2010

Hi Laura,

I think the same file may be checked out by some one else.Please try one of the following
1.Add you as the site collection administrator of the site
2.Create a new  list and try the customization

Thanks
Destin

Reply | Email | Modify 
Re: Re: Re: Re: All site users extend by Laura On September 2, 2010
Hello Destin,

Thank you!
I am the single site administrator and i've applied yesterday the same actions, several times to several new forms. Something else is happening. I begun to like making research in this case, so ...
If I'll find something interesting in this case, I'll let you know.
Greetings,
Laura
Reply | Email | Modify 
Re: Re: Re: Re: Re: All site users extend by Destin On November 14, 2010
Instead of deleting the list webpart just hide it by right clicking it
Reply | Email | Modify 
Help by Pepe On December 22, 2010
Is it a good choice to use this tool?: Kaldeera Advanced Forms (http://www.kaldeera.com/en-US/products/AdvancedForms/Pages/default.aspx) Thanx in advance. Pepe
Reply | Email | Modify 
Re: Help by Destin On December 27, 2010
I dont have any idea about this tool.Please check if it satisfies all your requirements:)
Reply | Email | Modify 
6 Months Free & No Setup Fees ASP.NET Hosting!
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.