Questions tagged [field-definition]

field deployed via a feature

Filter by
Sorted by
Tagged with
4 votes
1 answer
69 views

What is wrong with this field definition?

After deploying a solution and activating a Site scoped feature that has Field definitions and Content Type definitions, I see all the content types and all the fields except one, when going to Site ...
Dylan Cristy's user avatar
  • 12.7k
1 vote
1 answer
227 views

Convert User field to UserMulti field

I have a content type which has a field called "Owner" which currently is of type User. The code has been deployed to production and has been so for ~1 year so they have a lot of data in the ...
user avatar
0 votes
1 answer
288 views

Internal column name from Resource file

I have created a resource file to store project site column names and display names. What I find odd is that when the column is created the internal name remains $Resources:Boris.SP.Abl.SiteColumns,...
Boris's user avatar
  • 1,410
0 votes
2 answers
870 views

Site column definitions displaying resource keys instead of values

I wrote a Boris.SP.Abl.SiteColumns.sr-Latin-RS.resx resource file for a SharePoint 2013 farm solution project. I followed the tips from here to ensure that the resource is deployed to both %15hive%/...
Boris's user avatar
  • 1,410
2 votes
0 answers
189 views

Removing People from User Field, Allow only group

By default, there are two options available for User field. User User and Groups Is there any programmatic/declarative way on changing the properties so that the user field will only suggests and ...
Joe's user avatar
  • 483
0 votes
1 answer
3k views

SharePoint Powershell Number and User columns

I need to create two list fields by powershell. One that accept only Integer (type Number with no decimal) and the other User (multiple selection). I can create Number field and Single User field ...
Nk SP's user avatar
  • 2,893
0 votes
2 answers
1k views

RichTextMode attribute is ignored when applied

In my solution, I have defined a custom Field and Content Type. The field is defined as follows <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/...
Jason's user avatar
  • 587
1 vote
3 answers
1k views

Custom Field - Hide field on Item Edit and Add (ShowInEditForm, ShowInNewForm )

Im using SharePoint 2007. Created a custom field for a SharePoint list, which should not be displayed during Item Add or Edit. I have used SharePoint WSP Builder Project in Visual Studio 2008. Created ...
Shaamil's user avatar
  • 708
2 votes
2 answers
2k views

User Field that shows user Photo in SharePoint 2013

I have a list definition with Field of type User. I need to display a user's photo alongside with his name. In order to do that I'm using ShowField="NameWithPicture" attruibute like so: <Field ...
Denis Molodtsov's user avatar
1 vote
1 answer
473 views

What is the order in which Custom field type,Fields,Content type,List definition are creating?

I am creating a custom field type, Content type and List definition. I have a custom field type inheriting from Multicolumn value and I am adding new fields of my custom type to my new listdefinition....
anish's user avatar
  • 297
1 vote
1 answer
419 views

Field ShowInNewForm=“FALSE” Cannot Be Accessed In Code

I have a field for a custom document library, that must only be updated from code (event receiver) not from UI. So i set this field ShowInNewForm=“FALSE” and ShowInEditForm=“FALSE”. But this time, in ...
ozdogan's user avatar
  • 997
0 votes
1 answer
539 views

Please explain the Field Element Aggregation attribute

I am not quite understanding the use of the Field Element attribute 'Aggregation'. The Field Element : Defines the internal data types used in the list infrastructure of a SharePoint Web site. The '...
Integration's user avatar
3 votes
1 answer
634 views

Changing enterprise keywords column title programatically

I'm trying to rename an enterprise keywords column in a specific list of a subsite. In a Feature Activated event receiver i tried to set the column's display name by setting its title using the ...
Johnny Tordgeman's user avatar
1 vote
3 answers
1k views

Move Files from a SharePoint Library into a Folder

I have a problem. I want to move files from a SharePoint library into a folder using PowerShell. To be more specific I need to move all the files in the library for whose a SharePoint field value ...
Alves's user avatar
  • 21
0 votes
1 answer
1k views

Sharepoint how to add field to list where field with such name already exists?

I have sharepoint list 'Events' with field Location. I am trying to add from web existing field with same internal name from other package. var fields = contentType.ParentWeb.Fields; SPField ...
Ievgen's user avatar
  • 360
0 votes
2 answers
3k views

Error occurred in deployment step 'Activate Features': Invalid field name

SharePoint Error message Error occurred in deployment step 'Activate Features': Invalid field name.{guid}
Ravi Ranjan's user avatar
1 vote
1 answer
441 views

How to debug custom field type?

I wonder if we can debug custom field ? Does "attach to process" method works for custom field?
ozdogan's user avatar
  • 997
0 votes
1 answer
709 views

Rename standard field name in XML

I have a custom content type that inherits from the standard article page CT. In my new content type I would like to use the Contact field that is inherited from the article page but I would like to ...
Niclas Carlsson's user avatar
0 votes
2 answers
2k views

Using Content Type hub - do updated fields update in subscribed sites?

The title pretty much covers my question... I've updated a field in the content type hub - I want this field update to be reflected in the consuming sites/webs. I don't think the field defs are ...
marcus.greasly's user avatar
0 votes
1 answer
113 views

Help to understand content type

Given the below definition of a content type: <List xmlns:ows="Microsoft SharePoint" Title="Algorithm Types List Definition" EnableContentTypes="TRUE" FolderCreation="FALSE" Direction="$...
Narcis's user avatar
  • 133
1 vote
3 answers
2k views

Define contenttype with list

I have defined my list definition as following: <List xmlns:ows="Microsoft SharePoint" Title="Requests List Definition" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/...
Narcis's user avatar
  • 133
1 vote
2 answers
1k views

How to restrict a note field to 255 characters (without switching to single line of text)

I made a custom note field named "Content_Feedback" without specifying Allow Unlimited Length in document libraries <Field ID="{C9C90E3A-85AB-492E-9E47-C7A520A7DD0D}" Name="...
Francois Verbeeck's user avatar
0 votes
1 answer
782 views

Problem tying textfield to a content type field

I have a SharePointWebControls:TextField control on the page. It's tied to a field that has been defined as normal in the xml (I've gone through this with a fine tooth comb so I'm 99.999% sure the ...
JᴀʏMᴇᴇ's user avatar
0 votes
1 answer
2k views

How do I make Title property mandatory on a custom content type?

As title says, I want to use the standard SharePoint Title property, but I need to make it mandatory. It's not an option to do this through the 'Documents' settings of the UI, I need to define it as ...
JᴀʏMᴇᴇ's user avatar
0 votes
1 answer
2k views

InfoPath cannot generate a form template for the SharePoint list

The error I'm getting when I click Customize Form on a list. InfoPath cannot generate a form template for the SharePoint list Missing equals sign between attribute and attribute value. The list ...
Jimbo Alba's user avatar
0 votes
2 answers
386 views

Filling a list instance's MultiUser Field

i created a UserMulti field inside my list's instance. Heres how i declared it. <Row> <Field Name ="Title">List1</Field> <Field Name ="aatMessage">Message place ...
Dr.Denis McCracleJizz's user avatar
2 votes
4 answers
16k views

How to display column names in several languages in SharePoint?

I have created a site, installed my language packs, created the term store service and created some terms in multi-language (Persian and English). I then created a site, a new list, and a new managed ...
ar.gorgin's user avatar
  • 1,228
4 votes
1 answer
2k views

How to create a lookup field that has a list column picker

How would I be able to create a list field in VS that would be a lookup to select columns from any list? I would preferably like to have something like the PickerTreeView.aspx, but instead of ...
Perbert's user avatar
  • 99
2 votes
2 answers
2k views

Can an event receiver update a list item before the alert email is sent?

I have a requirement to expose a list item's ID value on the "DispForm.aspx" form and all alert emails for a particular list. SharePoint is very "protective" of its IDs (or counter fields) and it ...
user avatar
2 votes
1 answer
116 views

When defining field using CAML: what is the difference between Name and StaticName

When defining a new field using CAML in a feature definition I can define a the Name of the new field and the StaticName. What is difference? Should I define both? And how big is the explosion if ...
Dribbel's user avatar
  • 2,906
3 votes
1 answer
3k views

Composite unique indexes in Sharepoint 2010

I'm looking for something like Composite unique indexes in Sharepoint 2010. I have found that I can make some field in list unique. But how to make unique index composed from two or more cols in list? ...
Michal's user avatar
  • 863
2 votes
2 answers
1k views

Diffrence between AllowDuplicateValues and EnforceUniqueValues?

When defining a site column in XML, what is the difference between AllowDuplicateValues and EnforceUniqueValues? AllowDuplicateValues="False" EnforceUniqueValues="True" Logically it should do the ...
Tim's user avatar
  • 801
2 votes
1 answer
1k views

Custom Inerited Note Field 255 character limit and no HTML for Editing?

Two issues I have with the same column type. Using Sharepoint 2010. I created a custom Content Type (for use as news articles content Type) and added a couple of custom columns. I have a issue ...
Fox's user avatar
  • 2,676
0 votes
2 answers
5k views

export specific field from from sharepoint custom list to excel

I'm having custom list (SharePoint 2007) I need to export the list to Excel file. So I mark all the field that I want to export. but I when I export the list I can see: the "Path" field, though ...
liron's user avatar
  • 657
11 votes
1 answer
21k views

Adding a site column and add it to a content type from PowerShell issue

Within a PS script, I'm trying to add a site column and add this column to a custom content type. Here is my script : add-pssnapin Microsoft.SharePoint.PowerShell -EA 0 function ...
Steve B's user avatar
  • 7,488
2 votes
1 answer
130 views

Custom content type throwing errors?

I have created a custom content type that uses several custom fields that I created in the same project. When I deploy the content type for the first time it works fine. When I try to deploy ...
Abe Miessler's user avatar
  • 6,755
3 votes
1 answer
2k views

EnforceUniqueValues attribute on Field definition in Schema.XML not working, what am I doing wrong?

I have the following field definition in the Schema.XML file for a custom list definition. Per the documentation setting EnforceUniqueValues and Indexed to true should enforce a uniqueness constraint ...
JohnFx's user avatar
  • 651
2 votes
1 answer
1k views

How to update choice field options with a feature upgrade?

I created a feature with a field definition with choices. These choices are bound to language dependent resources using the $Resources:file:key system. Resource files are included. As the feature is ...
SPCoder's user avatar
  • 21
0 votes
1 answer
98 views

When I define a field in an elements.xml file, does the Name attribute have to be unique for the whole site collection?

I'm building a project consisting of two features; the first one contains, among other things, the following field definition: <Field ID="{E9821752-3293-4c3f-B377-22ABB7AF2F04}" Name="TruckNo" ...
Mihai's user avatar
  • 354
3 votes
2 answers
2k views

Sharepoint Profile not reading some AD fields

I have on my Sharepoint Profiles some fields that are mapped to the Active Directory (Name, job title, phone etc). I have added some info on the AD field called "Description", and when i went to map ...
C. Hoffmann's user avatar
0 votes
2 answers
9k views

Non-supported field type change

I am having a problem with a custom site column in SP2007, whose field type recently changed. I have defined features for the following artifacts, which are deployed at the site collection scope: A ...
jason.venema's user avatar
2 votes
2 answers
296 views

Add URLEncode attribute to a deployed field definition

Is it possible to add URLEncode to a field in schema.xml, and update the SharePoint site without deleting everything based on the schema? Eg. <Field DisplayName="Internal/External" /> to <...
Mikael Svenson's user avatar
2 votes
2 answers
2k views

Accessing a custom column in User Information List

I'm working with WSS 3.0, building a customized SharePoint site using .NET 3.5 and SPVisualDev. I have edited the FeatureEventReceiver.cs in the List area to add a new column to the User Information ...
grimorde's user avatar
  • 547
4 votes
1 answer
1k views

How to disable commas on Integer field in Edit item screen

I have a field defined as this: <Field Type="Integer" DisplayName="BŠS" Required="FALSE" Commas="FALSE" Group="CRPU grupa" ID="{f8ae007e-df89-4149-8318-a79673cec338}" SourceID="{e0015c45-f539-484b-...
user avatar