Tag Info

Hot answers tagged

2

As part of using AddFieldAsXml you need to provide the field's internal and staticname announcementy.Fields.AddFieldAsXml("<Field Type='User' DisplayName='Created By' StaticName='CreatedBy' Name='CreatedBy'/>", true, AddFieldOptions.AddToAllContentTypes); announcementy.Fields.AddFieldAsXml("<Field Type='DateTime' DisplayName='Date Created' ...


2

Scenario 1: When you go to Site Settings --> Site Content Types -- > select any content types , then it will show you only Site columns, no list columns will be shown there. Scenario 2: You have a list , which is using a content type. Go to List settings--> Under content types select the content type . Here it will show both Site columns and List columns. ...


2

In Survey list the question is a field. In order to determine whether field is a question or regular field you could utilize SourceID attribute, in case of questions its value is not http://schemas.microsoft.com/sharepoint/v3: /// <summary> /// Get questions in Survey List /// </summary> /// <param name="list"></param> /// ...


1

Yes When you create your column there is this option: Require that this column contains information: Mark it to yes so the item will always get a value for this column.


1

Creating a calculated column with the following formula should resolve your issue: = TEXT([Customer Number], "0")


1

This isn't supported out of the box. You have a few options: Use an InfoPath form to apply the filtering, but keep in mind that InfoPath is being discontinued in future versions Use JS Link to customize the item forms, or create a custom field for it (this was better explored here and here) Perhaps adapt the requirements a bit and use a Managed Metadata ...


1

The point is that formula expression is usually language dependent. For example, is site locate is set to 1033 (English - United States), then the formula you have provided in the question is absolutely correct: Syntax: TEXT(value,format_text) Source But let's say the site locate is set to 1049 (Russia), in that case the proper syntax would be: ...


1

You're using TEXT, which makes it un-sortable. You'd have to be using =DATE(MONTH(Modified),DAY(Modified),YEAR(Modified)) or similar. I doubt you can get the behavior you're looking for with the 'long month' without setting all your dates to this format (regional settings).



Only top voted, non community-wiki answers of a minimum length are eligible