SharePoint Custom New Form with DataForm Webpart SharePoint 2010

Hi Guys,
i have a Problem with my Custom NewForm.ASPX.  I Created a CustomForm like this Guide:
http://www.ilikesharepoint.de/2013/11/sharepoint-create-custom-list-forms-with-visual-studio-part-2/
Problem
Now i set the DataFormWebpart for the Webpartzone on visible=False and add my custom DataformWebpart in this NewForm.aspx (see Code).
After my deployment and click on "New item" i can see my custom DataForm Webpart.
The Problems are:
1. The Ribbon is Greyed out
This post was not my solution. The Ribbons is not greyed out but the Ribbon has no function ("save Button" is broken)
2. The Fields are not loaded and looks like a Displayform
I Don't know why the Dataform does not load these fields. I can see the title but not the text Columns or lookups
3. Save Button and the Ribbon does not work
Only the Cancel button work on this Newform.aspx
The Save button has no function

Here my NewForm.aspx Link
NewForm

Similar Messages

  • How to get the current web url in __redirect in custom new form?

    I have created one custom new form of a list in which I want to redirect the user to other page after saving item.
    I have placed <input> button to save the item and set the
    __redirect attribute to my custom page in Pages library. My site url is like,
    <sitecollection>/Pages/Page.aspx for e.x., http://xxx/sites/web/Pages/Page.aspx.
    My HTML code in CustomNewForm.aspx is:
    <input type="button"
    value="Save"
    onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/Pages/Test.aspx}')}" />
    But when press save button it redirects me to http://xxx/Pages/Test.aspx rather than
    http://<sitecollection/site/web/Pages/Test.aspx
    What should I do?

    Hi,
    According to your post, my understanding is that you want to redirect to a customized page in the specific "web" site when you click a save button in you customized new form. 
    I recommend that you can use the relative URL of the customized page in this site named "web" like “/site/web/Pages/Test.aspx” to implement it.
    In my environment, I do this test and the result is that it works well.
    Best Regards,
    Yumi Fu

  • Add attachment button to a custom new form SharePoint 2013

    I'm creating a new custom form using SharePoint Designer 2013.
    I would like to add a attachment button to be able to upload files and images. How can this be done?
    See code below
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <h3 class="ms-standardheader">
    <nobr>Attach Files</nobr>
    </h3>
    </td>
    <td valign="top" class="ms-formbody" id="attachmentsOnClient" style="width: 434px">
    <span dir="ltr">
    <input type="file" name="fileupload0" id="onetidIOFile" size="56" title="Name"></input>
    </span>
    </td>
    <td width="100px" valign="top" class="ms-formbody">
    <input name="Button1" type="button" value="Attach" onclick='OkAttach()' style="width: 6em;
    height: 1.7em" id="attachOKbutton" />
    <span id="idSpace"></span>
    </td>
    </tr>
    <tr id="idAttachmentsRow">
    <td nowrap="true" valign="top" class="ms-formlabel" width="20%">
    <SharePoint:FieldLabel ControlMode="New" FieldName="Attachments" runat="server"/>
    </td>
    <td valign="top" class="ms-formbody" width="80%">
    <SharePoint:FormField runat="server" id="AttachmentsField" ControlMode="New" FieldName="Attachments" __designer:bind="{ddwrt:DataBind('i','AttachmentsField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Attachments')}"/>
    <script>
    var elm = document.getElementById(&quot;idAttachmentsTable&quot;);
    if (elm == null || elm.rows.length == 0)
    document.getElementById(&quot;idAttachmentsRow&quot;).style.display=&apos;none&apos;;
    </script>
    </td>
    </tr>
    Im getting error :
    Uncaught TypeError: Cannot read property 'value' of undefined
    form.js?rev=PxBF2F2E04Ut1YUooXDAbg%3D%3D:1
    OkAttachform.js?rev=PxBF2F2E04Ut1YUooXDAbg%3D%3D:1
    onclick
    Somewhere around this line:
    k=document.getElementsByName("RectGifUrl")[0];e.innerHTML='<span class="ms-delAttachments"><IMG SRC=\''+k.value+"'>&nbsp;<a href='javascript:RemoveLocal
    Thanks in Advance

    Create a custom list form or go to your NewForm.aspx using SharePoint Designer. Place the below code where you would like to insert the Attachment Field
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <h3 class="ms-standardheader">
    <nobr>Attach Files</nobr>
    </h3>
    </td>
    <td valign="top" class="ms-formbody" id="attachmentsOnClient" style="width: 434px">
    <span dir=”ltr”>
    <input type=”file” name=”fileupload0″ id=”onetidIOFile” size=”56″ title=”Name”> </input>
    </span>
    </td>
    <td width="100px" valign="top" class="ms-formbody">
    <input name="Button1" type=”button” value="Attach" onclick='OkAttach()' style="width: 6em;
    height: 1.7em" />
    <span id="idSpace"></span>
    </td>
    </tr>
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • Custom List Form creation using Powershell - SharePoint 2013

    Hi,
    I have a custom List called 'IssuesList' with 4 fields - "IssueTitle","IssueID","IssueDesc","Status"
    While displaying display form I should show 3 fields expect Issue ID i.e. IssueID should be hidden.
    and on edit form only Status field should be editable. So using SharePoint designer I created respective Edit form and display forms and changed XSLT to control the display mode on the fields.
    I have everything scripted in powershell till now - creation of custom list, publishing pages, webparts etc. however I am looking for how to provision or associate these 2 list forms with IssuesList after I create the list in new site.
    I have restrictions on using wsp and site/list template due to business needs. So I need to know if there is any way I can upload these 2 files after I create custom list in powershell and associate them as defaultdisplay and defauteditforms?
    Please advise.

    Hi,
    Per my understanding, you might need to apply these custom forms to a list after list creation using PowerShell.
    With PowerShell with SharePoint Object Model, we can hide fields on list forms.
    The similar thread below with code snippet will provide more information about this:
    https://social.technet.microsoft.com/Forums/en-US/ee6fc2eb-197f-4144-94fa-8a4e438675d9/hide-a-field-from-edit-form-list?forum=sharepointgeneralprevious
    If there may be other requirements except for hiding fields, as you have limitation on using custom solution package(which should be preferable in such scenario),
    a workaround I can provide is that, after list creation, you can add Content Editor Web Part contains the CSS style or JavaScript to the form pages of a specific list, it will help you hide/disable the specific elements, this can be achieved programmatically.
    The code below can add a Content Editor Web Part to the DisplayForm of a list(though in C#):
    public static void AddCEWP()
    SPLimitedWebPartManager manager = null;
    SPFile file = null;
    using (SPSite site = new SPSite("http://sp"))
    using (SPWeb web = site.RootWeb)
    try
    web.AllowUnsafeUpdates = true;
    file = web.GetFile(web.Url + "/Lists/List018/DispForm.aspx");
    manager = file.GetLimitedWebPartManager(PersonalizationScope.Shared);
    ContentEditorWebPart webPart = new ContentEditorWebPart();
    XmlDocument xmlDoc = new XmlDocument();
    XmlElement xmlElement = xmlDoc.CreateElement("HtmlContent");
    //xmlElement.InnerText = "<strong>Hello World!</strong>";
    //write the custom CSS style or JavaScript here
    string content = "<style>your custom style here...</style>";
    xmlElement.InnerText = content;
    webPart.Content = xmlElement;
    manager.AddWebPart(webPart, "Top", 0);
    manager.SaveChanges(webPart);
    web.Update();
    catch (Exception ex)
    //Utility.SPTraceLogError(ex);
    finally
    if (manager != null)
    manager.Dispose();
    web.AllowUnsafeUpdates = false;
    About how to hide fields on Standard List Forms using jQuery:
    http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
    http://stackoverflow.com/questions/10010405/how-to-hide-a-field-in-sharepoint-display-form-based-on-the-field-name-jquery
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • CopyListItem - creating a button in the ribbon and opening the new form with selecting item id data.

    Hi,
                In Sharepoint 2013 online without visual studio, I need to create a copy button in the ribbon and by selecting a listitem and clicking the copy button. A new form has to be displayed with
    the selected listitem data. Please help me in doing this scenario.
    Scenario:
                 Since Customer does not want to enter all the data once again. The customer will select a listitem and click the copy custom button in the ribbon, the data should be loaded in
    a new form. The customer will do little modification and will click the submit button to save as a new list item.  Please help me in doing this scenario
    Thanks
    Logesh

    Hello Logesh,
    You can use SharePoint designer workflow to achieve the above requirement.
    See the below link for more details.
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=223
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Use query string between two custom New Form

    Hi guys,
    i have a New Form . In this  form i have  a button that open(onClick) another list form (it is a  different list). I have to pass a field value from the first form to the other . How can i do this using query string?Help please!
    Thank you!

    To pass some value with query string, you just need to open the form url with the querystring parameters (jquery needed):
    var url = '<yourlist>/newform.aspx?parameter1=' + $('input[Title="Title"]').val()
    SP.UI.ModalDialog.ShowPopupDialog(url)
    on the second newform.aspx, you can grab the querystring parameters with the Sharepoint native function "_spGetQueryParam('<lower case query key>')"
    var x = _spGetQueryParam("parameter1")
    Note: make sure you use the key as lowercase, even you if pass it with chars in uppercase.

  • How to open new form with set value

    I have two forms CLIENT and ORDERS who are connected by "client_id" in a one to many relationship [one client can have many orders]. What code to I put in the button so that that when I click on it from the CLIENT table, it goes to the ORDERS form with just the orders that match that "client_id"? The application is in oracle 9i developer using swing.
    Here's what I have so far, code to open the form without the binding
    //Open Order Form
    FormIcdClientApplicationView frameTarget = new FormOrderApplicationView(getPanelBinding());
    frameTarget.setVisible(true);
    // Close this window
    this.setVisible(false);

    Hello,
    This is the Forms forum. I am sure you will have more chance to get answer in the JDeveloper forum.
    FRancois

  • Custom order form with file upload facility

    Hi all,
    I'm trying to create a custom order form(for a printing company) where the user can select their product, enter their credit card details and then upload the file. I've created the combo box & user input text fields. Now what I want is that when user clicks the submit button:
    1. A mail is sent to the admin which contain all the details about the form that was filled by the user.
    2. The file that is uploaded by the user should also be sent as attachment in the same mail. I'm not able to figure out how to add the feature of file upload in ActionScript.
    3. This one is optional, but will add value to me if possible. The website is developed in Wordpress. Can we have a feature where a logged in user can save his order and come again later and retrieve his order form.
    Any help would be appreciated. Thanks for your time.
    Regards,
    Rajeev

    your client is, i believe, legally negligent.  you are probably jointly liable with your client.
    you should try and protect yourself.  you should keep a record that you've informed him that he needs to encrypt all credit card numbers during all phases of transmission but i doubt that will be enough to protect you because you are in a position to know and, will know, that he's not fulfilling his obligations to protect sensitive information.
    you would use the urlloader class to communicate between flash and the server and you will probably use php (another coding language) for the server-side coding.
    you can use google to search for php tutorials and help.

  • Custom SR Form with only needed data

    I'd like to start service requests from the Service Manager Console not from the Portal. How to customize the form is shown in
    this walkthrough from Antoni.
    So I want a custom service request form with a field to select Computers. In this field there only should be the possibility to select Computers with the asset status = deployed. Is there a solution to this or a hint where to look at?
    Patrick Wahlmüller

    so the idea behind the console is that it's supposed to be used by informed analyst who know the environment, so it's a little bit less friendly, by design. in regards to your ideas:
    Type Projections do not have filtration, by design. a Type projection is a way of presenting multiple classes as a single unified combination type; That type can then be filtered or pulled into a view. it doesn't make sense to filter a type projection,
    in the same way that it doesn't make sense to say that all zoos (I.E. a collection of related animals) must have tapirs (I.E. it's filtered by membership), a thing can be a zoo without having specific classes, even if they don't fit your view of
    zoos
    Groups are a way of collecting entities for security scoping. you could scope the user's roles down so they could only see vlans that are deployed, but it would mean they would not see the other vlans AT ALL. this may or may not be what you want
    to do, depending on the purpose of the user roles.
    just don't. InfoPath is.... unique, and you'd need to find a way to pull that data into the scsm database, and that's probably not going to be a good choice.
    the only thing I can recommend is perhaps naming the deployed VLANs differently then retired or pre-production vlans, so it's obvious in the display name what the status is. this isn't a good answer, the best answer would be to have the status exposed in
    the object picker, but that's not possible with the current entity design.

  • Pasting spreadsheet cells into a new form with the wizard ???

    I must be missing something here. Whenever I try to paste new cells from a spreadsheet into a new form using the new form wizard the 'finish' button doesn't turn active. It's like Livecycle isn't aware that spreadsheet cells have been copied to the clipboard.
    When I try to do it manually and create a new form then copy and paste cells into the form I get a grey image (icon?) that is supposed to repesent something, but I don't know what. It is definitely not spreadsheet cell information.
    Is it because I'm using Office 2000? Has anyone successfully done this?

    I checked in the LC ES help file and it indicates that the spreadsheet option works with 2003 and above. So perhaps it is related to my outdated software.
    Thanks for all your help, internet! :P

  • Custom Tabular Form with working days by quarter

    Hi All, I'm trying to create an application to improve an old excel that some people use in my office. I came across a challenge: create a page when a user can submit for each business day the amount of hours worked, the real problem is that I have to show on the same page 40 business days that need to be dynamic, I mean that there is a "period" table that has a start date and end date, the range between those two MINUS the Saturdays and Sundays should be the amount of COLUMNS that the report show.
    create table CT_PERIOD(
    PERIOD_ID VARCHAR2(6),
    PERIOD_FY VARCHAR2(4),
    PERIOD_QUARTER VARCHAR2(1),
    PERIOD_START_DATE DATE,
    PERIOD_END_DATE DATE,
    PERIOD_DAY_COUNT NUMBER,
    insert into ct_period values ('1', 'FY14', 'Q1', to_date('01-JUN-2013', 'DD-MON-YYYY'), to_date('25-AUG-2013', 'DD-MON-YYYY'), 56);
    commit;
    I searched in the web for some example of this with no luck, if somebody did something like this or knows where I can see an example that would be great!
    Thanks!

    Hi guys,
    I'm having exactly the same problem, I need a tabular form with days as columns to add actual working hours for each day as for each row ( task)

  • SharePoint Custom Tree view with CheckBoxes

    How to Unhide and Hide Treenodes in treeview based on Checkbox checked changed event in Asp.net
    Badri

    How to
     hide/unhide the all Treenodes on Treeview based on Checkbox changed event?
    Checkbox(Control)
    1.Checkbox Checked:(Action below like)
     if user click on  Checkbox, all the treenodes on treeview is hide.
    2.Checkbox Unchecked(Action below like)
    If user uncheck the Checkbox  all the treenodes on treeview is unhode.
    Thank you for your understanding, Iam not good at english.
    Could you please help me how to do above one.
    Badri

  • Customized emailed forms with Acrobat 9

    Using systems with XP or Vista, Office 2003 or 2007 and Acrobat 9.0 standard or pro, is it possible to create a customized form to mail out and collect the responses via email into the answers file?

    Yes. There are a number of new features available with Acrobat 9, many of which are covered in the following:
    https://admin.na3.acrobat.com/_a723755887/p31325014/
    George

  • Custome Web Form with User profile services

    HI
    I need some input to design webform which contain the data from user profile service and display in text box but using sharepoint 2013 Fiundation Env.
    So please can any one know how to user user profile service with sharepoint 2013 Foundation Versin
    Regards
    Anil

    Hi,
    Please refer to the Client-side people in SharePoint 2013.
    How to: Use the client-side People Picker control
    All you need to do is just add a div tag in your code and some JQuery code.
    <SharePoint:ScriptLink name="clienttemplates.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="clientforms.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="clientpeoplepicker.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="autofill.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="sp.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="sp.runtime.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="sp.core.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <div id="peoplePickerDiv"></div>
    Place the above code in ContentPlaceholderMain.
    // Run your custom code when the DOM is ready.
    $(document).ready(function () {
    // Specify the unique ID of the DOM element where the
    // picker will render.
    initializePeoplePicker('peoplePickerDiv');
    // Render and initialize the client-side People Picker.
    function initializePeoplePicker(peoplePickerElementId) {
    // Create a schema to store picker properties, and set the properties.
    var schema = {};
    schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';
    schema['SearchPrincipalSource'] = 15;
    schema['ResolvePrincipalSource'] = 15;
    schema['AllowMultipleValues'] = true;
    schema['MaximumEntitySuggestions'] = 50;
    schema['Width'] = '280px';
    // Render and initialize the picker.
    // Pass the ID of the DOM element that contains the picker, an array of initial
    // PickerEntity objects to set the picker value, and a schema that defines
    // picker properties.
    this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
    Please mark it answered, if your problem resolved.

  • New Forms with Content Types copies all form fields.

    I'm using the "NEW" button to create a form based on a Content Type.  I know how this worked in the past and I can attach to the right content type and everything.
    My problem is that the form generated is wrong.  It doesn't take the Content Type selected into account.  Instead it just displays everything in the form.
    Anyone else have this issue?
    David Jenkins

    Hi David,
    We need more information to reproduce this issue, could you provide the steps how you did the form based on a content type? 
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

Maybe you are looking for

  • NO DATA IN REPORT

    Hi gurus...     We use two cube's for extraction one <b>actual(Current)</b> AND one <b>Plan(Forecast)...</b> we move some characters of the Plan to the actual cube on a regular basis...  ex:- What ever we have planned for <b>2004(Plan)</b> in the yea

  • International characters apear with ? instead of ó or á or é

    After upgrade from 10.4.7 to 10.4.8 my email in yahoo apear with ? instead of the international characters. What i can do? I get this y mis correr�as con alguien que m�s all� instead of y mis correrías con alguien que más allá Thanks a lot. Jm

  • Mail Merge type reporting in APEX

    Has anyone implememted a reporting tool to create mail merge type documents in APEX 4.0? I have read threads from 2005 - forward on solutions for older releases of APEX. BI Pub is more than our budget, so we are looking for something less costly. I h

  • Concerning automatic plugin download

    i have a simple question what is required to make a applet, (automatically prompt the user to dl the pluggin) for the newest jre if they do not have it. 2. if i use a <applet> tag does this prevent it i heard that it is supposed to be automatic. than

  • Error repeating a lo in the log

    Hi experts, I'm getting this error a lot in my BPC LOG ==============[System Error Tracing]============== [System  Name] : OSoftCPM [Message Type] : ErrorMessage [Job Name]     : MetaData/GetAppSetInfo [DateTime]     : 27/04/2011 15:22:11 [UserId]