Dispform.aspx with content types

SharePoint 2013 farm.
I have two content types in a list. I need to change the dispform.aspx. 
There are different fields for both content types, so copying the dispform.aspx to create and modify a new one is not a solution I think. I am not sure. i am new in this :)
Can someone give me a step by step, how to modify the displayform of a list so that I can customize the the form for both content types.
best regards,
Olafur

Hi  Olafur,
There is a way in SharePoint Designer to specify which form the different content types in a list or library will use.
Open up the list,  click on the content type name:
On the Content Type screen, under the forms section, there is a text field where you can enter the relative path to the new form that you created.
Reference:
http://social.technet.microsoft.com/Forums/en-US/8f62d12d-8b72-40c7-baa4-59f4c211e86a/calendar-unique-newform-for-each-content-type?forum=sharepointgeneralprevious
Best Regards,
Eric
Eric Tao
TechNet Community Support

Similar Messages

  • How to Read a Message with Content Type multipart/alternative

    Hi ,
    I need to write a POP3 Client to read email message ..but some times the messages comes with content type multipart/alternative
    how to parse it and read only one of the content :
    for example :
    This is a multi-part message in MIME format.
    ------=_NextPart_000_12C25_01C6B64F.09226B00
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit
    Assignment to workgroup Name 1 : L2 SD Service Delivery Apps Spt
    Open CI Search Code : HPSD
    Description : tesat
    General Information :
    Is the workgroup owner Aware of the addition to Workgroup : Yes
    Workgroup to be added :
    L2 SD Service Delivery Apps Spt
    ------=_NextPart_000_12C25_01C6B64F.09226B00
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <br><P>Assignment to workgroup Name 1 : L2 SD Service Delivery Apps =
    Spt</P>
    <P>Open CI Search Code : HPSD</P>
    <P>Description : tesat</P>
    <P>General Information :</P>
    <P>Is the workgroup owner Aware of the addition to Workgroup : Yes</P>
    <P>Workgroup to be added :</P>
    <P>L2 SD Service Delivery Apps Spt</P>
    <P> </P>
    <P> </P>
    <P> </P>
    <P> </P>
    <P> </P>
    ------=_NextPart_000_12C25_01C6B64F.09226B00--
    The Same message is in text as well as HTML so not sure how to read it .
    currently my program is as follows
    for (int i = 0; i < found.length; i++) {
    Message m = found;
    // Get some headers
    Date date = m.getSentDate();
    Address [] from = m.getFrom();
    String subj = m.getSubject();
    String mimeType = m.getContentType();
    System.out.println(date + "\t" + from[0] + "\t" +
    subj + "\t" + mimeType);
    Object o = m.getContent();
    if (o instanceof String) {
    System.out.println("**This is a String Message**");
    System.out.println((String)o);
    } else if (o instanceof Multipart) {
    System.out.print("**This is a Multipart Message. ");
    Multipart mp = (Multipart)o;
    int count3 = mp.getCount();
    System.out.println("It has " + count3 +
    " BodyParts in it**");
    for (int j = 0; j < count3; j++) {
    // Part are numbered starting at 0
    BodyPart b = mp.getBodyPart(j);
    String mimeType2 = b.getContentType();
    System.out.println( "BodyPart " + (j + 1) +
    " is of MimeType " + mimeType);
    Object o2 = b.getContent();
    if (o2 instanceof String) {
    System.out.println("**This is a String BodyPart**");
    System.out.println((String)o2);
    } else if (o2 instanceof Multipart) {
    System.out.print(
    "**This BodyPart is a nested Multipart. ");
    Multipart mp2 = (Multipart)o2;
    int count2 = mp2.getCount();
    System.out.println("It has " + count2 +
    "further BodyParts in it**");
    } else if (o2 instanceof InputStream) {
    System.out.println(
    "**This is an InputStream BodyPart**");
    } //End of for
    } else if (o instanceof InputStream) {
    System.out.println("***********************************This is an InputStream message**");
    InputStream is = (InputStream)o;
    /* if(m.getContentType().equalsIgnoreCase("multipart/alternative")) {
    MimeMultipart mp = new MimeMultipart();
    // Assumes character content (not binary images)
    } else {*/
    BufferedReader reader
    =new BufferedReader(new InputStreamReader(is));
    String thisLine=reader.readLine();
    while (thisLine!=null) {
    System.out.println(thisLine);
    thisLine=reader.readLine();
    So when the Content TYpe is multipart/alternative it goes into InputStream message .
    any help and ideas to handel such situations ?
    Thanks
    San
    Message was edited by:
    sanrosh_95

    Try reposting that with tags (replace the {'s with ['s).
    Long story short, I think the FAQ and examples would go a long way towards explaining this, but you basically can check the content type, or check if the content contains parts, and parse each part separately.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Batch uploading to a document library with content types

    Hi,
    I have a document library with two content types. Now I need to upload documents to this document library. However, if I have large number of files, then uploading through web UI is a pain as metadata will not be attached. How should I automate it  from
    my computer using powershell without relying on Administrator to run the powershell script. Or is there any other way to do it without using powershell? or  can powershell be run remotely from an end user computer?
    Note I am using SharePoint 2010.

    Hi,
    According to your post, my understanding is that you want to butch upload files to document library with content types.
    There are two good tools in CodePlex which can batch upload files with content types, you can have a look at them.
    DocMetaMan : Bulk document Upload and MetaData (Taxonomy) Setter
    SharePoint Multiple File Upload Script
    There are some third-party tools which can achieve the same scenario, you can refer to it.
    http://sharepoint.stackexchange.com/questions/74694/uploading-multiple-files-with-metadata
    Thanks,
    Jason
    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]
    Jason Guo
    TechNet Community Support

  • Creating custom form with content type list - Shaepoint 2013 list

    Hi All,
         I have a list with a content type. So basically i have the default content type and another custom one.
    I would like to customize the forms and taught of using sharepoint designer.
    Is this a good approach or is it better using infopath.
    When i try using infopath i don't know how i can using content type to create forms.
    I basically have 2 forms based on the content types how can i separate this when using custom forms and what would be the best practice?
    Cheers and thanks in advance

    Hi Patrick,
    According to your description, you want to create a form for each content type in a custom list with multiple content types. Is it right?
    If we use Infopath to customize forms for a list with multiple content types, it only customizes the default content type, the forms for other content types don't have changes.
    For your requirement, I suggest you use SharePoint Designer to create forms for content types.
    More information about how to create forms using SharePoint Designer 2013:
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2012/09/20/how-to-create-custom-forms-using-sharepoint-designer-2013.aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • E-Mail recevier with Content-Type: multipart/mixed

    Hi All,
    I am working on proxy to Mail scenario, wherein Pi is receiving data from SAP over proxy, creating a csv of the data and sending it to recipient as the email with the attachment.
    The User is saying that he wants the email content type as Multipart MIME format. I have searched on SDN and web, but couldnu2019t find how to implement in PI.Please provide your inputs.
    Thanks in advance,
    Ruchi

    Hi Ruchi,
    You need to use Java Mapping or UDF to create Multipart/Mime
    Check this excellent blog by stefan.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
    Also check this thread for your solution
    http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095

  • CFHTTP request with content-type "application/atom+xml"

    Is it possible to send a HTTP request (method="post")  with a body that has a set content-type (such as "application/atom+xml")?
    using CFHTTP and CFHTTPPRAM, it seems the tag does not accept a content-type.
    <cfhttpparam type="body" value="#myAtomXML#">
    is there anyway to have CFHTTP , post the body with a given content-type?
    IF NOT, could anyone point me to the right direction to accompolish this using Java?

    Hi,
    Have you tried the "mimetype" attribute of the <cfhttpparam> tag?.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_g-h_10.html

  • Accessing Java webservice (XML over http) via WCF or HTTP adapter with content-type and authorization HTTP headers with POST method

    Hi Team,
    I need to access Java web service which is simple service and accepts and returns XML over HTTP. No credentials are needed to access the service. We need to pass following two HTTP headers (Content-Type and Authorization) along with XML request message:
    <GetStatus> message is being constructed in the orchestration and URI is constant to access.
    Which adapter shall I use to get the response back? I tried using WCF-WSHttp with Security Mode = Transport, and different options of client credential types but every time, error returned stating:
    System.Net.WebException:
    The HTTP request is unauthorized with client authentication scheme 'Basic'. The
    authentication header received from the server was 'Basic realm='.
    Authentication failed for principal Basic. Message payload is of type:
    String 
    In Fiddler, request looks line following
    POST <https://URL/GetServiceReopnse HTTP/1.1
    Content-Type: application/xml
    Authorization: Basic cmVmU3RhdHN2Y19kgeRfsdfs=
    Host: <Server name>
    <GetStatus XMLNS="http://server.com/.....">
    <OrgId>232323</OrgId>
    <HubId>3232342323</HubId>
    </GetStatus>
    MMK-007

    First, you should not use the HTTP Adapter because it's been deprecated and replaced by WCF.
    Start with the WCF-Custom Adapter and select the customBinding.
    You should start with the textMessageEncoder and httpTransport and go from there.

  • Problem with content type

    Hi All,
    I have set the content type to text/html by using the following statement in jsp
    <%@page contentType=�text/html�%>And if I give
    out.println("<a href="aaa.do">Click here</a>"); it is showing me a link to click here that's fine.
    But my problem here is that I am using struts <bean:write name="user1" property="subject"/> tag and the data in the subject field is Click here i.e the output from the database, now its not showing the link instead displaying every thing even if the content type is set. How can I achieve this? please help me out.

    in your bean:write tag try setting the filter attribute to false, like so
    <bean:write name="xxx" property="xxx" filter="false"/>
    http://struts.apache.org/1.2.9/userGuide/struts-bean.html#write

  • 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

  • XDB returns javascript with Content-type:windows-1251. I want utf-8.

    Release 11.1.0.6.0 - Production on Пн Апр 27 22:25:51 2009
    Hi.
    I have static javascript file main.js. I want to use it in my APEX application.
    I use XDB and I put this file via FTP in /public/htmlbuilder folder. This file is UTF-8 encoded without BOM.
    But when I request this file XDB returns it in windows-1251 encoding.
    c:\temp> get -de http://127.0.0.1:7777/public/htmlbuilder/main.js
    Content-Type: application/x-javascript; charset=WINDOWS-1251
    So my question is How can I make XDB return main.js in utf-8 charset
    I try adding
    <charset-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
    <extension>js</extension>
    <charset>UTF-8</charset>
    </charset-mapping>
    to xdbconfig — didn't help.
    Thanks in advance.
    P.S. Sorry, English is not my native language.

    Thank you Marco, but this didn't solve my problem.
    Let me explain one more time.
    I put main.js in XDB via FTP.
    When I type in Firefox address bar http://127.0.0.1:7777/public/htmlbuilder/main.js
    Firefox shows me this file in windows-1251 encoding. And my preferrable encoding in Firefox settings is utf-8. .
    I found out that XDB include header
    Content-Type: application/x-javascript; charset=WINDOWS-1251
    in HTTP Response headers.
    I wonder where XDB takes this windows-1251. How can I change it to AL32UTF8?

  • Can't read Messages with Content-Type multipart/mixed

    For many years I have used „QuickMail Pro“, as my favorite Mail-Client. Now I had switch to Apple Mail. I hoped, to be more compatible to other „modern“ Mail-Clients. So could it be, that Apple Mail can not read Messages from Type <multipart/mixed>? I only see the Header-Information and instead of the Message-Text there is only an Error-Message:
    <Diese E-Mail kann aufgrund ihrer Formatierung nicht angezeigt werden. Bitten Sie den Absender, Ihnen die E-Mail erneut in einem anderen Format bzw. mit einem anderen E-Mail-Programm zu senden.
    multipart/mixed>
    Did anyone know a simple Way, to read this Messages.
    My old QuickMail has no Problem with this Type.

    Hi Ruchi,
    You need to use Java Mapping or UDF to create Multipart/Mime
    Check this excellent blog by stefan.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
    Also check this thread for your solution
    http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095

  • List custom form with content type drop list

    We're building retention polices for our documents we have 18 document type each has different retention period , when user enter document information we need to choose a document content type from dropdown list instead of choosing it from New Item
    in ribbon menu, then complete other form fields and save, also ability to change the content type for document item, what is the best practice to complete this task.
    BR

    Hey,
    Have below link for your reference. It may help you.
    How to pass query string parameter to SharePoint
    list forms
    Thanks.

  • Cust DispForm.aspx with a custom column

    I am creating a Custom Display form for a list. My issue is that I have a custom column that I created.  It is a Linked picture.  My issue is this when the xslt form displays it is displaying the custom column as 2 links instead of the picture
    wrapped inside of a link.  I want to run jquery to grab the  results split them and reconstruct the field but I am having an issue writing the jquery.  I know it is suppose to be something similar to the following.  I believe the cdata
    is suppose to be wrapped inside an xsl tag but I am not sure and if it is what tag should it be wrapped inside of
        <script type="text/javascript" src="/</script">Documents/jquery-1.10.1.js"></script>  
    <script language="javascript" type="text/javascript">
           $(document).ready(function() 
                        <![CDATA[  var thisLink = $(this).attr("@Logo").split(",");
                          var out = "<a href=" + thisLink[0] + "><img src=" + thisLink[1] + " border=0 /></a>";
                          $("#DisplayIt").append(out); ]]>
          </script>
          <ul id="DisplayIt"/>

    I ended up getting it to work by doing the follow:
    <a>
            <xsl:attribute name="href">
                 <xsl:value-of select="substring-before(@Logo, ',')" />
            </xsl:attribute>
            <img>
                <xsl:attribute name="src">
                   <xsl:value-of select="substring-after(@Logo, ',')" />
                </xsl:attribute>
            </img>
    </a>

  • Access denied error while uploading the document into document library which is associated with a content type

    hi,
     am trying to upload a document in a document library which is associated  with content types [ the content type contains 10 site columns and one of them is taxonomy field]. i added this content type in the document library.
    this document library is residing in a team site which is saved as a template and  based on this template i have created sub sites.
    and when i tried to upload a file to the doc lib, it throws me "access denied error".
    what may be went wrong .
    any help is  appreciated!

    Access denied indicates the user account uploading the file doesn't have access to the library, or sometimes it means there's already a document in the library with the same name that was never checked in. It's also possible that your template contains
    custom code that tries to do something that is not allowed.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Email with HTML (content/type). Is it possible?

    Hello!
    I have this script to send e-mail form my PDF form:
    event.target.submitForm({cURL
    :"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody,cSubmitAs:"PDF",cCharset:"utf-8"});
    I would like to send e-mail with content/type HTML. Is it possible? When open my Outlook, the message is in format simple text, but I don't want. I want the format HTML.
    Thanks!

    Hello my friend Niall. How are you?
    So, Not is it possible, right?
    I try search on the internet about the function submitform, but I didn't found anything about the HTML. I need this because the user going to put a html table when reply the e-mail for me.
    Thanks.

Maybe you are looking for