Tag Info

New 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' ...


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 ...


0

Check your Site Columns definition; when I look at a Modified column in a document library, I see date and time. Either Site Column or Site Content Type (I believe Site Column is the driver), check your params. Column Name: Date Modified (from Existing Core Document Columns) In additional column settings: Date and Time Format: **Date and Time**


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: ...


0

Instead of creating a calculated column with the same data in text format, you can use Client Side Rendering and JSLink to create javascript Date objects for each Modified column value and format the date to your preference such as var modified = $(selector).text(); var date = (new Date(modified)).format("MMMM dd, yyyy");


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).


0

You can still sort by the Modified field, which is indexed and very well suitable for sorting.


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. ...


0

Look for this solution: https://sp2013columnpermission.codeplex.com/ Features: Column Permission Hide or Read Only Columns in a List Forms (New/Edit/Display) Hide Columns in Views Hide Columns in Alert Me Emails Specify the permission for Users, SharePoint Groups or Active Directory Groups View Permission Disable Views Automatically Disable Views in ...


0

please post the field your trying to call from the webservice. 9 times out of 10 the code is correct but the field is wrong! by wrong i mean: If for example i have the field 'My ID' and i want to call it or query it, usually people search using 'My ID' which is the display version. Try using the internal name instead which if it does contain a space would ...


0

Please go to list setting page and click on the field name. In the url check for query string "Field" the value after = sign is the name of column. /_layouts/FldEditEx.aspx?List=%7BA247F2E0%2D3B53%2D4CDF%2D8FFB%2D62E1C3F042DB%7D&**Field=Author**


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> /// ...


0

The only answer I found right now is this: checking the ShowInVersionHistory property of each field! using (SPSite sito = new SPSite("URL")) { using (SPWeb web = sito.OpenWeb()) { var list = web.Lists["SURVEY LIST NAME"]; foreach(var Field in list.Fields.Cast<SPField>().Where(x => ...


-1

If it a single value choice field , we can do regular expression validation, but if its multi value it is not supported by SharePoint. In your case , we can use the regular expression = IF( [ChoiceFieldName], "Yes", "No" )


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.


0

I still don't understand why this can't be done the normal way, but I've found a workaround. Go to Validation Settings under General Settings on the library settings page In the Formula box, enter =NOT(ISBLANK([Date])) (where Date is the name of the column) Write in a meaningful custom message under "User message" along the lines of "Date cannot be blank" ...


0

Try the methods listed below Method 1: Step 1: Change Internet Explorer Security settings Link Step 2: Add the website to trusted websites list. Link Method 2: I would suggest you to run the Internet Explorer in no add-ons mode and check if it helps. To do so follow the step 4 from the below link: Link If that does not work, follow all the ...



Top 50 recent answers are included