Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spfield]

Represents a field in a list on a SharePoint Foundation Web site.

0
votes
1answer
54 views

REST API couldn't create list field

I am trying to create list fields using REST api. But when I call the code given below many times, it creates some of the fields and not all of them. code: function addnewfield(name){ $.ajax({ ...
0
votes
1answer
102 views

Issue with Document Library (Preview) and Name field appearing in view

When I add a document library (preview) to a modern site page in SharePoint Online, it adds the name field to the view even though it is not in the view in the default library: Original Library View ...
0
votes
1answer
30 views

Rendering `Title` and `Edit` columns title description

I'm working on SharePoint 2016 OnPremises. I created a view which renders the columns titles, as the _layouts/15/ViewEdit.aspx does. The result: The original rendering is slightly different: Where ...
0
votes
2answers
112 views

Unable to delete list column because of the error “Cannot change Hidden attribute for this field”

While deleting a list column I see an error: Cannot change hidden attribute for this field. I have changed the Hidden property to False. But still no luck. It keeps on throwing the error. The ...
0
votes
1answer
51 views

Set Lookup and User Field Types when Migrating to Sharepoint online using Migration API

I am in the process of writing a c# code to migrate set of files to Sharepoint online(o365) using migration API and I have successfully done migration using the approach mentioned in the below link. ...
1
vote
2answers
633 views

Calculated default value in DropDown

I want to set the default value from a dropdown field based on the content type. So basically: If Contenttype equals "HW" than set dropdown default value to "1". Each time I try to set the following ...
2
votes
0answers
156 views

What is the purpose of “EntityPropertyName” property of field?

I am getting all list fields using REST API, In result, I found there is "EntityPropertyName" property for each field. For some fields, it shows exactly same value as "InternalName" property But for ...
1
vote
2answers
55 views

SP16 PowerShell - How to update field DisplayName after add in List

I want to know what is the best way to add a field in the list and change his display name. My case adds 20 fields in the list... but the code will get big... This is my code(working) $SPWebHolidays ...
0
votes
1answer
252 views

SharePointWebControls FieldValue Yes/No

Wondering if you could help me please. Currently have a page layout with a SharePointWebControl inserted on the page: <SharePointWebControls:FieldValue FieldName="Boolean1" runat="server" /> ...
2
votes
1answer
1k views

How to Get SharePoint field internal name using Display Name?

In SharePoint list I know the field display name. Using display name I want to get Internal name of field, string FieldName = "Test Field"; SPField field = olist.Fields.GetFieldByInternalName(...
3
votes
2answers
173 views

How can I set the ShowAsPercentage property on SP.FieldNumber using REST API?

I am able to successfully create a new List column using the SharePoint REST API with the following JSON: {"Title":"My Title", "StaticName":"MyTitle", "Required":"false", "FieldTypeKind":9, "...
3
votes
0answers
276 views

SPBuiltInFieldId in CSOM?

Is there any alternative to SPBuiltInFieldId in csom /SharePoint online? Should you only reference field only by InternalName in csom/SharePoint online?
3
votes
1answer
91 views

How i can associate an SPFieldUser to a SPGroup

I am working on developing an event receiver inside my sharepoint 2013 farm on-premises. and inside the event receiver i am trying to assign a list column to a SPGroup. what i am trying to do is ...
0
votes
1answer
742 views

Property 'SetShowInEditForm' cannot be found on this object; make sure it exists and is settable.- SharePoint Online

I'm trying to make a field in Edit mode hidden by using this code below :- $web = $context.Web $site = $context.Site $list = $web.Lists.GetByTitle("Test List"); $fields = $list.Fields["TestHidden"];...
2
votes
0answers
50 views

add Control on field date time

Is there a way to add a control on field datetime in schema.xml file without javascript and without c#. For exemple my date file cant be less than the current date . od date 2 must be more than date 1....
0
votes
1answer
79 views

How to set the “title” in a lookup field

if you have a lookup field, its Html source is depicted as: <option value="79" title="G0058">G0058</option> I could use jquery to change the title from G0058 to company1 (field name: ...
0
votes
1answer
19 views

Which SPField property specifies if one is checked during view creation?

When I create a Standard View via the browser, some of the Columns are checked to be Display-ed by default, and some are not(see bottom of image). I am trying to build a view server side, and have ...
1
vote
1answer
101 views

How to retrieve the value from sharepoint column values contains comma(,)?

In my SharePoint list I have address column with comma values. For example Address1,Address2,Address3. When I was retrieving the value from list only I can get the address1 value. But address column ...
1
vote
1answer
103 views

Default value set, but not used

I am creating a field through the following xml: <Field Name="FieldName" StaticName="FieldName" DisplayName="FieldName" Required="FALSE" Hidden="FALSE" ID="{12345678-1234-...
2
votes
1answer
24 views

SP07 - WorkFlow where update ListItem

I want to create a workflow where update list item and increase with 1 her value. This is for like, dislike functionality. Like field is type number: Where put a counter in workflow?
0
votes
1answer
223 views

CSOM, How to prevent duplicate error when create new list item with a unique enforce column value?

I have a list with 2 columns. These columns have "enforce unique values" enabled. I would like to add a new list item in CSOM. But got sometimes the duplicate error. How can I prevent this error? What ...
0
votes
0answers
24 views

Load field and webProperty

I my getWebPropertiesSucceeded, I can work with "webProperties", but "field" is undefined. however, this variable exist in "getWebProperties". Why this variable is undefined after asynchronous call? ...
2
votes
2answers
3k views

Hide fields in new item menu

I have followed the answer described in Hide list column on new, edit item-OOTB But what I found is when editing the column from the content type, i found the hidden menu is disabled. Content type ...
3
votes
2answers
1k views

Get Value from Person or Group Type Field

How can I get Value from Person or Group Type Field from a List form. Context here is a SharePoint list. the point is I need to do this for validation purpose. So I need the value entered in this ...
1
vote
1answer
278 views

Passing a value to a custom JSLink field type

I'm creating a custom field type for Sharepoint using the JSLink method. This field will be used in New List Item / Edit List Item forms. What I want to do is to allow a user to set a custom ...
0
votes
2answers
449 views

Setting Field Formula Programmatically

I have a field formula which is working as intended which I've set in my list settings for the respective list. Now, my question is if it's possible to set this formula programmatically somewhere so ...
0
votes
1answer
61 views

SPD - PageLayout set name in tag PageFieldFieldValue:FieldValue

I have two templates for pageLayout and use two fields from some content type. Can u set another name in this tag ?? <!--MS:<PageFieldDateTimeField:DateTimeField FieldName="8336201e-40ba-494c-...
3
votes
1answer
116 views

Cannot set list item value

I want to set a ListItem value with PowerShell (SP2013). As the following screenshot shows, I (the current user) have Full Control for this list. However, I cannot edit any field value. The value ...
0
votes
4answers
501 views

internal name of Default Task Status field on 2013 OnPrem?

I don't have OnPrem at hand, can someone check what the internal fieldname is for the default Tasks List "Task Status" field. On Office365 it is Status, I know it was TaskStatus in SharePoint 2010 ...
0
votes
1answer
259 views

How to add a content type field to a SPList using PowerShell

This the scenario: I have created a new LookupField (Content Type) called MyLookupField which derives from SPFieldLookup as shown below: public class MyLookupField : SPFieldLookup { ... } Here's ...
0
votes
1answer
24 views

SP - Get items form certain SPChoiceField

I need to get all items from SPChoiceField and insert in dropDownList ? This is my code to get from everyone ChoiceField, I need to get only from SPChoiceField with name "Company" using (SPSite site ...
0
votes
1answer
1k views

Allow multiple selections on Person or Group field

In SharePoint 2013 on-premise I am trying to create a Person or Group field to use it in a content type. My problem with the field is that I cannot select more than 1 person. I have been googling a ...
1
vote
1answer
446 views

How to handle currency values correctly in CSOM?

I have a currency field inside a SharePoint List. When I retrieve that field the result type is "double". As it should be according to the documentation. But we all learned that double is a bad ...
18
votes
2answers
4k views

set column order of fields using CSOM/REST javascript

I am creting list fields using CSOM ecma script. How do I set the column order of the fields to be displayed in the form programmatically? For eg: I have created the following fields programmatically :...
3
votes
2answers
2k views

Calculated field based on a field in another list

I would like to create a calculated field which requires a digit. This digit must be between a Max and Min value which are two ListItems in another list. How can I create a formula for this calucated ...
1
vote
0answers
24 views

MOSS 2007 SPItemEventProperties values of fields accessed via display name or internal name

I need to access the before and after field values for the list item corresponding to an event receiver in MOSS 2007. The name of the field is Annual Salary and the InternalName is Annual_x0020_Salary....
0
votes
1answer
625 views

Efficient way to get all the field (column) values in an array from SharePoint List

I have to get all the field (column) values in an array from a SharePoint list. Right now I am looping through all the items in the list and creating an array. But it is very inefficient if I have ...
2
votes
2answers
104 views

Required Field Color

How do you change the colour of either the field or the label of a required field when uploading/editing the properties of a document. The user says it is hard to see the little * ?
0
votes
1answer
3k views

Restore a deleted field (site column)

I had to add a Content Type to a list. The Content Type contained Site Column Priority which was a drop down, and the list already had. After I added the content type I removed the old Priority column ...
1
vote
2answers
535 views

SharePoint get field value as text

For JSOM we have a great method called get_fieldValuesAsText that returns formatted field value. The same value as user can see it in the list. I am really supprised that I can't find anything like ...
0
votes
0answers
79 views

List field manipulation based on rules

he following situation: I have got list (List A) with the following fields. Field A ->String Field B-> String Field C →LookUp to another list Field D → Calculated field Field E On creating or ...
2
votes
1answer
57 views

What is PreviousID

I have a field in my list and not sure why it has PreviousID attribute. I have the same list in the same farm but in the different web application and does not have this attribute. <Field Type="...
0
votes
1answer
45 views

Want to create a navigation bar from list item which redirects to another page or document

Navigation bar should get populated from List items(Hyperlink items) that maps to pages or another document. Share Point 2010
0
votes
1answer
125 views

Create multi user selection field

how could i create a multi user field? <Field ID="{6ec181bb-e64c-40cf-9a77-48c98108e981}" Name="Field" DisplayName="MyUserField" Type="UserMulti" Required="FALSE" Group="myGroup"...
0
votes
1answer
100 views

set field internal name with list.updatelist webservice

Is it possible to set a field's internal name in the List.UpdateList webservice? I can set the DisplayName but no matter what I try for Name it does not work. <Field DisplayName="this gets set" ...
1
vote
1answer
441 views

URL in multiline column

I've got a List and a Document Library. Both have their own content types. In those content types is a site column, a multiline one with Rich Text. In this column, I'm coding a simple link with html ...
0
votes
1answer
317 views

How to find the lists which are using custom columns in MOSS 2007 environment at web app level using powershell?

I have deployed a solution which creates a custom column/field to the entire web app. But the solution doesn't contain any features. Now I want to find the lists where that custom column is used. ...
0
votes
2answers
66 views

Fields not filled with DefaultValues

As of a previous question, whenever an item is added in a list, I create a document library based on a template, and set defaultvalues for some of its fields. In Sharepoint Manager I see defaultvalues ...
0
votes
2answers
752 views

Check if required fields are filled or not in SPList programmatically

I want to check if required field in SharePoint list is filled with data or not? Which method or property should i use?
1
vote
0answers
1k views

Unable to locate the xml-definition for FieldName with FieldId

On a site collection of SP2013 on-premise farm, I found there are many similar log occur every minute. The logs are like: Unable to locate the xml-definition for FieldName with FieldId '', ...