Skip to main content

Questions tagged [spfield]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

PowerApps - How can I reference the Created By SharePoint field in the form?

I am modifying a SharePoint form in PowerApps, and I'm trying to populate a text field based on whether or not the Created By field (from SharePoint) is populated. Essentially I'm trying to set a ...
Chris's user avatar
  • 409
0 votes
0 answers
115 views

Update of field's "ShowInEditForm" in a content type is not being reflected

I'm trying to show a special field from a content type in the Edit Form of the Library Invalids. The field is called Invalid. As far as, I can see in the PowerShell, the value of ShowInEditForm is set ...
dns_nx's user avatar
  • 181
0 votes
1 answer
151 views

What is meant by Computed column? can we modify it?

I am working on a client SharePoint online tenant, and they have a column of type Computed, as follow:- where users' submit answers from a Power app and the field will either show Passed or Failed.. ...
John John's user avatar
0 votes
1 answer
211 views

May I add a custom attribute in SPField SchemaXML to create

Could I add a custom attribute (MyCustomAttribute="true") in SchemaXML of SP.Field and create it by REST API? <Field Type="Text" DisplayName="AwesomeField" MaxLength=&...
Artur Auhatov's user avatar
0 votes
1 answer
176 views

Column naming convention with spfx & search

I want to retrieve data from a SharePoint list, at the same time I want to retrieve data from web api in my spfx webpart. So basically what I want is to have a unified component that can just connect ...
B1B's user avatar
  • 153
1 vote
1 answer
41 views

Is it possible to extend SPFieldUrl to have more properties like url or description, to create a custom field type?

Url field type has more than one property : something like url, description. I want to know that how can I extend url field type(or some other field type that have more than one property) to create a ...
hossein hashemian's user avatar
0 votes
1 answer
74 views

Get SPField real DisplayName in timer job

I wrote two event revicer. On base on Web scope - this frature creat page and shom on them all list field by their display name, user select interesting to him field and can they use in mail template. ...
Karol Kozłowski's user avatar
-1 votes
1 answer
64 views

Sharepoint 2013: Moving a field o be side by side with another field doesn't save it

in an list/EditForm.aspx, I have the following code to copy/paste a field to another place: var dest = $('span[title="MyTitle"]').parents("tr:first"); // place to be copied var source = $("input[id*='...
XristosK's user avatar
  • 1,012
0 votes
1 answer
824 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({ ...
Shams Eldeen's user avatar
0 votes
1 answer
474 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 ...
Ryan's user avatar
  • 105
0 votes
1 answer
39 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 ...
Emaborsa's user avatar
  • 1,189
1 vote
2 answers
1k 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 ...
Bishnu Das's user avatar
0 votes
1 answer
169 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. ...
Sumudu P's user avatar
2 votes
2 answers
3k 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 ...
Oskar's user avatar
  • 308
3 votes
1 answer
810 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 ...
SP Developer's user avatar
  • 3,085
1 vote
2 answers
197 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 ...
Goshky's user avatar
  • 2,058
0 votes
1 answer
647 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" /> ...
Adam13Hylo's user avatar
3 votes
1 answer
5k 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(...
Elina's user avatar
  • 331
3 votes
2 answers
424 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, "...
5eleven7's user avatar
  • 135
4 votes
0 answers
647 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?
Cowborg's user avatar
  • 1,037
3 votes
1 answer
226 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 ...
John John's user avatar
0 votes
1 answer
1k 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"];...
naijacoder's user avatar
  • 4,304
2 votes
0 answers
69 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....
Imen Turki's user avatar
  • 2,183
0 votes
1 answer
517 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: ...
XristosK's user avatar
  • 1,012
0 votes
1 answer
28 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 ...
Taterhead's user avatar
  • 624
1 vote
1 answer
157 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 ...
Elina's user avatar
  • 369
1 vote
1 answer
151 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-...
Revils's user avatar
  • 131
2 votes
1 answer
25 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?
Goshky's user avatar
  • 2,058
0 votes
1 answer
535 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 ...
Ola's user avatar
  • 4,385
2 votes
3 answers
6k 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 ...
Tarek Salah uddin Mahmud's user avatar
3 votes
2 answers
2k 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 ...
mohd tahir's user avatar
  • 2,406
0 votes
1 answer
476 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 ...
user avatar
0 votes
2 answers
784 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 ...
Khaine775's user avatar
  • 221
0 votes
1 answer
90 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-...
Goshky's user avatar
  • 2,058
3 votes
1 answer
128 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 ...
StefG's user avatar
  • 251
0 votes
4 answers
723 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 ...
Danny '365CSI' Engelman's user avatar
0 votes
1 answer
564 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 ...
user1309226's user avatar
0 votes
1 answer
51 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 ...
Goshky's user avatar
  • 2,058
0 votes
1 answer
2k 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 ...
Ilyas's user avatar
  • 1,341
1 vote
1 answer
820 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 ...
Ole Albers's user avatar
19 votes
3 answers
6k 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 :...
Jinxed's user avatar
  • 1,244
3 votes
2 answers
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 ...
Medes's user avatar
  • 2,086
1 vote
0 answers
25 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....
Web User's user avatar
  • 229
0 votes
1 answer
1k 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 ...
Naveen's user avatar
  • 1,912
2 votes
2 answers
328 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 * ?
Jonathan Bennett's user avatar
0 votes
1 answer
6k 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 ...
Medes's user avatar
  • 2,086
1 vote
2 answers
2k 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 ...
Serhiy's user avatar
  • 379
0 votes
0 answers
100 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 ...
user21399's user avatar
2 votes
1 answer
71 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="...
Ravi Khambhati's user avatar
0 votes
1 answer
62 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
seema's user avatar
  • 11