.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Newform .aspx modification (Custom Form)

Posted By:      Posted Date: October 28, 2010    Points: 0   Category :SharePoint

I m trying to add a field called Customer. This field I want to make it a dropdown list (bounded to our company sql db).

I want to do this in custom form. I tried to do it in Newform.aspx but I couldnt able to display on dispform.aspx / editform.aspx.

What can I do to achieve this?

I couldnt find any example that do this kind of job.

Any help.

View Complete Post

More Related Resource Links

Custom Form NewForm.aspx for List


hi All

I have ContentType with one field and its custom New , Edit and display.

I attached this content type to custom list.

As I try to add new item to List, Custom NewForm.aspx from layouts pages is opened, that is gr8 as per requirement.

but i am using sharepoint control dropdownchoice for one field in contenttype with serveral properties set.

and as I try to submit the data I am getting error like


Failed to get value of the "CustomField" column from the "Choice" field type control.  See details in log. Exception message: Object reference not set to an instance of an object..


I am not able to track it out....


Any Suggestion


Saumil Thakkar



SPCalendarView in sharepoint 2010 placed on custom aspx form does not respond to any actions

Hello everybody! We are facing strange problem when using SPCalendarView  in custom aspx form. Calendar does not cause any postback when clicking on any of its buttons. We have have used script fix (step 4) from this microsoft walkthrough and our calendar started to partially work, but it was throwing javascript exceptions in new inserted function. After function fix (semicollon missing), calendar stopped working again... Does anybody have any idea what can be wrong?

create a custom "newform.aspx" for document library using sharepoint designer and web services


Hi All,

I need to change the look and feel of "NewForm.aspx" for my Sharepoint 2007 Document Library. But the constraints are

1. I cant use C# coding. No Visual Studio.

2. Not allowed change anything in the farm level. e.g. cant install features/webparts fo this.

3. Can only use JavaScript, JQuerry and Sharepoint Designer 2007.

I came across some suggestions that we can create a custom page in Javascript/JQuery. Which will take all input data and insert new items in list/doc library using some XML services.

Please help me, I dont know if this is really possible. Let me know if any alternative is possible.

custom aspx form keeps linking to first record only


I have designed several aspx forms. All have seperate lists.

Each entry in the list has an ID number.

Each form has a webpart to fetch the entries data.

All the forms have a link to fetch the current ID number.

<a.href="form.name.aspx?feedbackid={@ID}" target="_blank">Print>form name</a>     (I added the a.href on purpose as sometimes forums don't allow links)

When you hover over the link, the correct name appears in the bottom left of the browser and likewise in the address bar form.name.aspx?feedbackid=5

Yet the data that is displayed in the form is always from record 1 from the list.


Someone must have seen something similar, yet can't see anything on google, must be using the wrong search words.

Any ideas ?


Thanks to all in advance.

can not attach custom aspx list item form to the list




I'm need make custom aspx list item form for tasks of my workflow. I'm use code from this book: SharePoint 2010 as a Development Platform


my Elements.xml file

<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

  <ContentType ID="0x010801005c12bbf6e6e548569e8100f1ad953859"

               Name="?????? ???????? ???????? ?????????? ???????????"

               Group="Custom Content Types"

               Description="My Content Type"



form elements in wrong order on custon newform.aspx

In SharePoint Designer 2007, I created a new .aspx page in which I put SharePoint Control > Custom List Form using the default content type for my for my list.  However, in the UI, when I try to create a new list item, the form fields are not rendering in the correct order.  I double checked by column ordering of the content type and it is correct.  Why is my new custom form not using the same column order?  I shouldn't have to get into the html and reorder things should I?

Accessing my custom aspx page in the place of Newform.aspx of the list



I have a aspx page where i have designed the controls as per the need.Now my requirement is as soon as user click on 'New' of the List,i am expecting to aspx page to come as Newform.aspx of the list.Could you please share your ideas regarding this?

Thanks & Regards,


Order of form items in DispForm.aspx and NewForm.aspx

I created a new list (it is not a content type).  I went into the List Setting and set the column ordering.  However, on my Form pages (DispForm.aspx, EditForm.asp, NewForm.aspx) the form elements are NOT following this order.  Can someone tell me what I have done wrong please?
There are no mistakes; every result tells you something of value about what your are trying to accomplish.

Add my custom ASPX Form for New And Edit In sharepoint foundation 2010


How cna i use my custom aspx page as New and Edit Form for a List Template. Please give me some example.


How to Customize SharePoint List form: newform.aspx to add functionality similar to a repeating tabl




I want to customize SharePoint List form: newform.aspx to add functionality similar to a repeating table in InfoPath?

I’d like to achieve similar functionality using in SharePoint Designer and Javascript/JQuery.


Any suggestions / links / examples are sincerely appreciated.



Abhijit Sil

Setting Task Field Values in Custom .aspx Edit Form and accessing through ExtendedProperties


Since we're using WSS 3.0 and not MOSS 2007, we have to create and use ASP forms for any custom Workflow Task Edit pages instead of being able to use InfoPath forms (which would be nice...maybe some day we'll step up to MOSS). The custom Workflow Edit Pages are used for custom Task Content Types that we create so that our Workflow Tasks can have additional fields beyond the standard Workflow Task fields. Once you've collected the values for the Task fields from the user on the ASP Workflow Task Edit form, the typical procedure is to create a hashtable and fill the hashtable with key/value pairs that represent the names of your Task fields and their associated values, as such:

// This function is called when the user clicks the Save/Submit button
// on the Custom Task Edit ASP form
public void btnSubmit_Click(object sender, EventArgs e)
  // Create a hashtable that will be used to update the values of task fields
  Hashtable taskHash = new Hashtable();
  // For each field, create two values in the hashtable. If the field name 
  // matches a field in the Task content type, the field name will not be 
  // searchable as a key within the ExtendedProperties hashtable. So 
  // create a second field that is a duplicate of the first but having a 
  // name that doesn't exactly match an existing field in the Task 
  // content type. That way it will be a searchable ke

How to load the custom autoincrement value in Newform.aspx

Hi, I have a List to get the Customer Information, in that i have a column to increment, the increment value is in the combination of Date,String,and ID of the currenitem (10-28-SSS23). How can i achive this auto increment value. So that when a user click the new menu he will redirect to 'NewForm.aspx' and in the page load i want to load the autoincrement value to the textbox.

Custom views on .aspx webpage


Hi again, i have a client that needs me to create a custom view on thier webpage similar to Microsoft Word.

It goes about that, when I click on an image it redirects me to another page and must create a custom view for a certain paragraph on that page. I am not sure how to do this and wonder if anyone knows how.

I am using C# programming language if that helps at all. I Heard that using javascript would work but i dont know javascript yet so is there any alternative?

Getting user control in NewForm.aspx of the list


I have designed a user control where i have placed some custom fields as per my requirement now my next step is as soon as user clicks 'Create' under Site Settings it should take him to my user control page instead of Newform.aspx default page of the list.Just let me know your suggestions to achieve this as it would help me a lot

Thanks & Regards,


how to hide/display controls in NewForm.aspx based on dropdown value in SharePoint list



I have 1 dropdown in my sharepoint list with other columns. If dropdown value equal to 'xyz' i need to display some other controls, otherwise these controls should be hidden.

I know we can achieve this with javascript. If any one can provide code or sample then it will be appreciated. or is there any other alternative methods to do this ........

Thanks & Regards, Neerubee

Update web form using custom events.


How can I update UI of web form via event?

I have 2 buttons on page, where button1.visible = false.

Page code behind:

     protected void Page_Load(object sender, EventArgs e)
            if (!this.IsPostBack)
                Class1.ShowButtonEvent += new Class1.ShowButton(Show);

Custom Editform.aspx crashes Sharepoint Designer

Hi there,

I've recently designed a sharepoint list and customised newform.aspx and editform.aspx. I made copies of the originals then customised the copies.
On both forms I simply:

* Closed original List Form web part
* Added Custom List Form
* Added some section breaks (<tr>) to the form to break it into sections
* Added a new css style to change the background colour on the section breaks (table rows)

Now NewForm.aspx works fine. However after making above changes in EditForm.aspx, I saved it. However whenever I try to reopen EditForm.aspx in Sharepoint Designer (SD), SD crashes! I can only open it in Text view. The error details reported by SD are:

Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    SPDESIGN.EXE
  Application Version:    12.0.6423.1000
  Application Timestamp:    49b09947
  Fault Module Name:    FPEDITAX.DLL
  Fault Module Version:    12.0.6423.1000
  Fault Module Timestamp:    49b098d3
  Exception Code:    c0000005
  Exception Offset:    0010b35c
  OS Version:    6.0.6002.
  Locale ID:    3081

Additional information about the problem:
  LCID:    1033
  Brand:    Office12Crash
  skulcid:    1033

I really don't know why SD is crashing. As a test I made a new
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend