An XML element is everything from (including) the element's start tag to (including) the element's end tag.

learn more… | top users | synonyms

1
vote
1answer
2k views

Reference a javascript script in a ribbon custom action xml

Reference a .js file on a spribbon custom action elements.xml on my javascriptmethods.js file: function test(){ alert('test message.');} on my custom action elements.xml: <CustomAction ...
2
votes
2answers
8k views

Sharepoint 2010: How to set default value for a lookup column (without InfoPath forms)

How can I set default value for a lookup column (when we adding new item)? For lists creating I am using site columns and site content types in elements.xml. I can set default value for text or date ...
2
votes
1answer
2k views

How to add Two java script file in element .xml

I am using 2 button in custom tab and each button has a .js file to load . Could you please say me how to use 2 .js file in the same element .xml and here is my code for element xml <?xml ...
6
votes
1answer
6k views

Error when deploying module with GhostableInLibrary files

Here is the module which I want to deploy on the server and the files which should be shown in the Style Library, when deploying them without type ghostale in library, all go good and well, no errors, ...
4
votes
1answer
2k views

Why won't my site column deploy from an elements file?

See Can site columns be deployed in sandboxed solutions? for background on this. I've tried to reproduce the sandboxed feature with a site column as built by Hilton Giesenow shown on How Do I: Create ...
3
votes
3answers
2k views

Can't rename “Title” field in List Definition

I can't rename "Title" field to "Unit Type" Here is my Schema.xml: <?xml version="1.0" encoding="utf-8"?> <List xmlns:ows="Microsoft SharePoint" Title="PrCenter - StatisticsDef" ...
3
votes
1answer
8k views

Custom list definition - fields in Elements.xml and Schema.xml

I'm creating a custom list definition in SharePoint 2010 by following this article. The tutorial is OK and it works. There is a thing that I don't understand though. Why do I need to insert the ...
1
vote
2answers
3k views

Can't change title field display name

I'm using visual studio to develop custom content type, which uses Element as base content type. I'd like to change title field's display name, by doing so: <FieldRef ...