Custom checkbox choice field for custom content type in sharepoint

Hi,
Created custom choice field as follows:
<Field
ID="{GUID}"
Type="MultiChoice"
Group="GroupName"
Name="Division"
DisplayName="Division"
Required="TRUE"
>
<CHOICES>
<CHOICE>Choice
A</CHOICE>
<CHOICE>Choice
B</CHOICE>
<CHOICE>Choice
C</CHOICE>
</CHOICES></Field>
Can anybody let me know how to make choice A and Choice B checkboxes are checked by default?
Any help would be appreciated.
Thank you,
AA.

Hi,
According to your post, my understanding is that you wanted to set the default value for the custom checkbox choice field.
You need to add the code:
<Default>=";#Choice
A;#Choice B;#"</Default>
The result is as below:
<Field
ID="{41A0820B-9EF4-4913-9A2A-1356F0ADE9B4}"
Type="MultiChoice"
Group="A
Custom Group"
Name="Division"
DisplayName="Division"
Required="TRUE"
>
    <Default>=";#Choice
A;#Choice B;#"</Default>
    <CHOICES>
      <CHOICE>Choice
A</CHOICE>
      <CHOICE>Choice
B</CHOICE>
      <CHOICE>Choice
C</CHOICE>
    </CHOICES>
  </Field>
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • Problems when trying to return information for External Content Types in Sharepoint 2013

    This is my first post on the forum, until I tried on this problem but have not found anything.
    When trying to return the information from the external content displays the following error:
    Error retrieving data from mill. Administrators: query the server log for more information.
    I do not know what else to do...

    Hi,
    According to your post, my understanding is that you got an error when tried to return the information from the external content.
    Did the error occur when you created a new external content type or created a external list?
    You can check the steps with the following articles about how to create a external content type.
    http://lightningtools.com/bcs/creating-an-external-content-type-with-sharepoint-designer-2013/
    http://wyldesharepoint.blogspot.in/2012/12/sharepoint-2013-setting-up-external.html
    If the error occurred with the external list, you can check the steps with the following article.
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/01/08/how-to-create-external-data-column-in-sharepoint-2013.aspx
    You can also check the event log and ULS log to see if anything unexpected occurred.
    For SharePoint 2013, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Open field for customer line item

    Hi Guru
      I have some problem about open field for customer line item  post with posting key 09 and special GL , I open field at posting key 09 but the field still hidden  . How I can open field for used . Thank you

    Dear,
    Use transaction FBL5N and select Special G/L Transactions only and execute.....here bring posting key and filter the posting with 09.
    REgards,
    Chintan Joshi

  • Marriage anniversary date field for customer contact

    Hi
    We like to have Marriage anniversary date field for customer contact.
    We found Birthday field & even Marital Status in Customer Contact. However, Marriage Anniversary Date is missing.
    Please suggest whether it is already avalible somewhere? If yes, how to get it (in XD01/XD02), or what is the alternative then.
    Thanks.
    - Sunil

    Hi,
       I don't think SAP has provided marriage anniversary field , you can very well user REMARKS field to enter the details.
    Regards,
    Siraj

  • How to delete a custom columns from a content-type in Sharepoint Client object model

    I have a windows interface where I create a content-type and then create a column and adds that column to the content-type.
    //availableCT is my content-type where the column is present.
    //get all available fields within this content-type
    FieldCollection fieldColl = availableCT.Fields;
    clientContext.Load(fieldColl);
    clientContext.ExecuteQuery();
    foreach (Field field in fieldColl)
    //columnFromList is the column that is to be deleted
    if (field.InternalName.Equals(columnFromList))
    field.DeleteObject();
    clientContext.ExecuteQuery(); // this throws an exception
    // Additional information: Site columns which are included in content types or on lists cannot be deleted. Please remove all instances of this site column prior to deleting it.

    hi,
    you can use the below code to delete it
    using (ClientContext sourceContext = new ClientContext(cmdSpoSite))
    Web web = sourceContext.Web;
    sourceContext.Load(web);
    sourceContext.Load(web.AvailableContentTypes, type => type.Include(c => c.FieldLinks, c => c.Name));
    sourceContext.ExecuteQuery();
    List<ContentType> ExistingContentType = web.AvailableContentTypes.ToList();
    IEnumerable<ContentType> contentTypesList = ExistingContentType.Where(ct => ct.Name == "<ContentTypeName>");
    ContentType ctype = contentTypesList.ElementAt(0);
    IQueryable<FieldLink> flinks = ctype.FieldLinks.Where(f => f.Name == "<FiledName");
    foreach (FieldLink flink in flinks)
    flink.DeleteObject();
    ctype.Update(true);
    sourceContext.ExecuteQuery();
    The difference being in your code and above code is you are removeing fileds which is eventually is deleting site column but a site column cannot be deleted if is alreday being used. So you need to deled the FieldLink in content type taht way column is removed
    from content type but not from site column.
    Now if you want to delete site column you can use your code to deleted Field.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Workflow Status column for new content type

    Hi,
    Initially I had a document library and several workflows associated with it. After that I created a new content type inheriting Folder content type. My existing workflows could be started and work fine with any item of this new content type except anything
    related to the workflow status column, such as "Automatically update workflow status to the current stage name", or workflow action "Set workflow status". If I use the OOTB Folder content type, everything's fine. But I need custom fields
    for folder as well.
    The workflows can be started then it seems unreasonable that they are not associated with the items of the new content type, considering I set my new content type to be the child of the existing Folder content type. So why any item under this new content
    type does not have the workflow status column? I've tried removing the workflow from the list and publishing back using SPD without success.
    I also notice that when you associate a new content type to a document library/list which has some custom columns, you cannot edit those columns to be used in the new content type. You need to delete those columns and recreate them, then the option "Add
    to all content types" is there. Is this expected design?
    Thanks

    Hi,
    According to your post, an error occurred when you created a custom Edit form for new content type.
    We can do as follows:
    1.Add the MyNameSpace.MyNewEditPage dll file into GAC(C:\Windows\assembly).
    2. Execute the iisreset command.
    We can create a new content type using visual studio 2012/2013.
    http://www.sharepoint-journey.com/sharepoint-list-content-types-and-site-columns.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Best Practises for using Content Types

    We had third party vendor who migrated and re structured contents and sites in Sharepoint 2010. I noticed one unusual thing : In most cases they new separate site content types for every library in a site i.e. even if two libraries contain same set of metadata
    columns they created separate site content types by duplicating it from the first one and gave it unique name and used in second library.
    My point of view for content type is that they are used for re usability, i.e. if another library is needing same set of metadata columns then I would just reuse existing content type rather than creating another content type with different name by inheriting
    it from the first one and having same set of columns.
    When I asked vendor reason for this approach (for every library they created new content types and for libraries needing same set of meta data columns they just inherited from a custom site content type and created another duplicate one with same set of
    meta data columns and gave it different name in most cases name of library ) they said they did that to classify documents which I did not agree with because by creating two document libraries classification is already done.
    I need some expert advice on this, I will really appreciate: I understand content types are useful and they provide re usability but,
     A) Do we need to create new site content types whenever we create new library ? (Even though we are not going to re use them)
    B) What is best practice : if few libraries are needing same set of metadata columns
    1) Create site a content type and reuse it in those libraries ? or
    2) Create a site content type and create new content types by inheriting from site content type created at first and just give them different name even though all of them are having same set of columns  ?
    I need expert advice on this but following is my own opinion on this
    I do not think point A) is a good practice and should not be used, we should create site content type only when we think it will be re used and we do not need to create site content type every time we create document library. Also I do not think point 2)
    of B is a good practice as well
    Dhaval Raval

    It depends on the nature of the content types and the libraries. If the document types really are shared between document libraries then use the same ones. If the content types are distinct and non overlapping items that have different processes, rules or
    uses then breaking them out into a separate content type is the way forward.
    As an example for sharing content types: Teams A and B have different document libraries. Both fill in purchase orders, although they work on different projects. In this case they use the same form and sharing a content type is the no question approach.
    As an example for different content types: A company has two arms, a consultancy where they send people out to client sites and a manufacturing team who build hardware. Both need to fill in timesheets but whilst the metadata fields on both are the same the
    forms are different and/or are processed in a different manner.
    You can make a case either way, i prefer to keep the content types simple and only expand out when there's a proven need and a user base with experience with them. It means that if you wanted to subdivide later you'd have more of a headache but that's a
    risk I generally think works out.

  • OOTB Approval Workflow for a Content Type sends emails for 2 content types

    My environment: SP 2013 Server (WFE-APP) + SQL
    I have a few Content Types configured in a document library. Every content type has an OOTB approval workflow to fire an e-mail to the approver on each new/edit.
    When I create a new file for testing, it first becomes checked out with no properties added. I then edit the properties to specify its content type and other fields. When I check in the document, SharePoint sends out an e-mail to the approver for that content
    type which is correct. What SharePoint also does for this very same file is sends out an approval request e-mail for the default content type for that library which is something else than a desired content type.
    This is something I cannot understand. I thought that the workflows start on a file 'Check in'. If I check in a file that is a certain content type, why does the approval for a default content type for a library trigger as well? 

    Hi,
    Is it SharePoint 2013 workflow or previous 2010 model workflow? If it's SharePoint 2013, how are you associating workflow to content type. As per
    MSDN "Unlike previous versions, SharePoint 2013 does not support workflows that are scoped to a
    content type. However, the messaging infrastructure is extensible, so it can support
    any arbitrary scope. As a developer, you can set to", workflow association with content type (which was possible in SharePiont 2010) is no longer available out of the box. You need to do it manually, (not sure how as there's no documentation yet
    from MS) and programmatically.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • List field vs. Content Type Field - Powershell

    Hello,
    We have a bunch of document libraries where we have a List Column that contains information.  We have recently added a content type to the libraries and would like to copy the information from the List Column to a field in the content type.
    How do I use powershell to refer to these fields?
    If I have the Document Library (List) as a variable $list then I assume that I refer to the field as $list.$column.  But how do I do the same for the document?   How do I iterate through each document in the library to accomplish the same thing
    with a for loop?
    Something like:
    $list = $web.GetList("My List Name")
    foreach ($document in $list)
    $document.Fields["Document Field"] = $list.Fields["List Field"]
    $document.update()
    Any help would be greatly appreciated,
    Matt

    your code should be similar to
    $web=Get-SPWeb http://your_site_url_here
    $list=$web.Lists["List_Name_here"]
    foreach($item in $list.Items)
    #your logic here
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • ACE Error - NCOALink Parameter Error, Customer ID already used for customer

    ACE Error - NCOALink Parameter Error, Customer ID already used for customer "[customer name]", list "[list name]"
    Received this error and not sure if its due to the Customer/List ID & List Name combination or some thing else.  Any ideas?
    Also, is there a document that explains ACE errors.
    Thank you!

    Greetings cbeaure,
    For something like this I normally suggest logging an incident with Support at service.sap.com . 
    However I thought it might be heplful to answer your questions and provide you with the example you would have located by using the Knowledgebase search when logging the issue with the Support team.
    During the process of logging an issue to Support on the SAP Service Marketplace, you would be prompted for a search in the Knowledgebase. By entering in the error you received, you would have seen the following:
    Cause:
    This error will occur when either the List Name or Company Name was changed, but the PAF ID (specifically the Customer\List ID) has not changed.
    Resolution:
    The software has verification in place that requires a unique NCOALink PAF ID for the combined parts of the List Name and Company Name. This meets the Licensee's requirement, as described by the USPS in the Limited Service Provider and Full Service Provider Performance Requirements:
    "Licensee will assign each NCOALink customer file, list, or database a unique NCOALink PAF ID. This ID will be used by the software to verify that the customer has a valid, active PAF on file with Licensee. This ID will also be used to provide a relationship between Licensee's service log and PAF information files. The format of the ID will be an eighteen character alphanumeric field consisting of four sub-parts.  The Licensee will ensure that each of their customers has a unique and never duplicated PAF ID. The software must not allow duplicate IDs. The ID shall be assigned by Licensee upon execution of the Processing Acknowledgement Form and be used throughout the system as prescribed."
    (Continued on next post, end part 1)

  • Adding a new filed to 'allowed fields' for a movement type

    Dear All
    Can I add a new field to the allowed fields for a movement type at the SPRO node 'field selection for movement type'
    Thanks

    Post Author: V361
    CA Forum: General
    Could you be reporting from a View instead of a table ?

  • How to create external content type in sharepoint for salesforce account

    Can anybody help me on How to create external content type in sharepoint for salesforce account.
    I wanto upload documents to a document library which should sync with accounts in saleforce.
    thanks in advance

    Hi,
    The following materials would be helpful:
    Tutorial: Access Salesforce Leads in SharePoint through an External List
    http://geekswithblogs.net/dataintegration/archive/2014/02/03/tutorial-access-salesforce-leads-in-sharepoint-through-an-external-list.aspx
    Salesforce SharePoint Integration – Best Practices
    http://rainforce.walkme.com/salesforce-sharepoint-integration-best-practices/#.VFxra3mKAeE
    If you want to upload documents to SharePoint document library from the Saleforce, we can also customize your own web service using SharePont .Net Client Object Model or REST to achieve it.
    Best Regards 
    Dennis Guo
    TechNet Community Support

  • How to remove event handlers for a content type currently in use?

    Hi,
    We had a SP 2007 solution that managed event handlers as described in
    Brian Wilson's blog regarding event handlers. We then did a in-place upgrade to SP 2010. It so happend that we wanted to remove some of our old event handlers and this is where our problem started. We managed to delete event handlers
    (SPEventReceiverDefinitions) for
    Site and List by using the ui from Brian Wilsons feature "Manage Event Handlers" (ref the link above), but not anyone at all for
    Content Types... It simply wouldn't be deleted
    (remove was grayed out in the ui). 
    We then tried to do it by code. Below is a code snippet illustrating how we tried to delete the event handlers for content types:
    using (SPWeb web = properties.Feature.Parent as SPWeb)
    string targetClassName = "targetClassName.";
    web.AllowUnsafeUpdates = true;
    // Removing Content Type event handlers
    foreach (SPContentType ct in web.ContentTypes)
    for (int i = ct.EventReceivers.Count - 1; i >= 0; i--)
    if (ct.EventReceivers[i].Class.StartsWith(targetClassName))
    ct.EventReceivers[i].Delete();
    ct.Update(true);
    web.Update();
    The Content Types are not sealed and are
    not readonly. When debugging, we can see that the
    Delete() method are called on one of the Content Types we wanted to delete event handlers for. We noted that the
    ct.EventReceivers.Count remains the same, before and after Delete() is called. We did not get any exceptions when running this code.
    When running the code a second time and debugging again, we see that the very same Content Type still has the very same event handler attached... As in, it wasn't deleted....
    We also tried to delete the event handlers through PowerShell as described
    here in the post by Per Jakobsen. However, the script did not really seem to find any EventReceivers... We tried to write the
    $site.AllWebs | % {$_.Lists} | % {$_.ContentTypes} | % {$_.EventReceivers} list to file, but it was empty.. We did however get a long list when writing $site.AllWebs | % {$_.Lists} | % {$_.ContentTypes} to file. We could then in
    that file see the event handler references we want to remove registered to our Content Types, as we did during code debugging earlier on. So PowerShell might still be the way to go here...
    So, does anyone know if there is a way to force this delete through, either by code, PowerShell or some other means? Any help regarding this matter would be very much appreciated :)

    Hi,
    For your information, there's two versions (at least) exists for each content types. One is Site Content Type - exists in Root web and another is list content type. Once you add a content type to a list, a copy of the site content type is taken and stored
    in the list. If you update the site content type, it may or may not affect the list conten type. So make sure you are updating the both - site content and list content type. Once you update site content type with passing paramater true to 'ct.Update(true)',
    the list content types are supposed to updated too.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • What is the field for sales order type?

    pls tell me what is the field for sales order type??
    and from which table........urgent

    Hi,
    Field for sales order type is AUART in table TVAK
    the Parent table for Sales order type is TVAK.
    Best regards,
    raam

  • HT201272 click the tab for the content type you're looking for (Music, Movies, TV Shows, Apps, or Books). No. a lie

    "From your Purchased page, click the tab for the content type you're looking for (Music, Movies, TV Shows, Apps, or Books)."
    Ok, Movies only in US.. that is fine.. BUT I only have Apps and Books to select. Where is my option to download my music again? I can see my purchases under my account but from the store trying to follow the described method - impossible!
    I don't care about apps or books.. music.. I want my paid music. No wonder people pirate music?!

    Zesty.Zooma wrote:
    But will I be able to keep the data stored in the applications, photos, books and also the sorting and the folder arrangements the same way they were, after erasing all the data and synchornizing with the new library?
    That is the aim of the process set out here: Recover your iTunes library from your iPod or iOS device.
    tt2

Maybe you are looking for

  • Can no longer see my Favorites and Routes on Ovi M...

    I can no longer see the info I have on my E71 on ovi maps - it used to work!  After I log on to Ovi and I click on the Favorites tab the data starts to load then stops and the program hangs. It is interesting that I synchronized the phone with ovi ma

  • Getting Thumbnails from PDF

    Hello, When we use Acrobat Professional to "Create PDF" using "From File" , Acrobat is internally creating the thumbnails for each page and storing these information in one of the layers. I would like to know how to extract those already generated Th

  • How to know the program attached to each button ?

    Hello, When I press on various buttons in SAP various ABAP programs/functions are launched/executed. How can I know the name of the program/functions that is attached to these buttons? I want to debug through these programs/functions because they hav

  • Migrate oracle 9iR2 database from Suse to Red Hat???

    Hi Everyone, We're going to move an oracle 9iR2 database from Suse to Red Hat. At this moment I don't know the detail about the platforms yet. I still like to ask a question if DB backup on Suse is compatible on RedHat? Physical restoring may be our

  • Built Application containing VISA resource name control in Labview 7.1 not working

    Very new to Labview (student). I built an application (my first)that uses VISA serial in Labview 7.1. The application contains a VISA resource name control. The program worked when silmulated, but not when built as app. When I removed this control fr