About me
I live in Lund and work, well, at probably the best company in the world
Tag Cloud
Active Directory
AD
ajax
Android
api
app
Apps
ASP.NET
azure
C#
CAML
Chuvash
Client Object Model
codeplex
console
csom
csr
css
css3
database
devtools
extension
git
github
google chrome
html
html5
javascript
jQuery
jQuery tmpl
js
jslink
jsom
json
keyboard
keyboard layout
LINQ
linux
localization
log
masterpage
ModalDialog
monitoring
office365
onet.xml
Performance
Powershel
PowerShell
raspberrypi
REST
rättigheter
script
Serverinstallation
Sharepoint
SharePoint 2010
sharepoint 2013
sharepoint2013
sharepoint apps
sharepoint online
SP.js
spapp
SPField
SPList
SPListItem
spo
SPWeb
subversion
tips
ubuntu
VHD
Visual Studio
webpart
webparts
windows
xml
Top posts
Certiffications


Blog Stats
- 601,489 hits
Recent Comments
Blogs I Follow
- Daniel Chronlund Cloud Tech Blog
- Вула Чăвашла
- Discovering SharePoint
- Bram de Jager - Architect, Speaker, Author
- SharePoint Dev Lab
- GUID(E) To SharePoint
- SharePoint Dragons
- Mai Omar Desouki
- Cameron Dwyer
- paul.tavares
- Share SharePoint Points !
- Simple Stuffs
- Jimmy Janlén "Den Scrummande Konsulten"
- Aryan Nava
- SPJoel
- SharePointRyan
- SharePoint 2020
- Aharoni in Unicode
- ... And All That JS
- blksthl
This will change the field’s Internal Name. I just want to change the field’s Display Name and keep the original Internal Name.
This will not change the InternalName, actually the Internal Name cannot be change. This will update the Display Name only.
Thanks for helping.
We are using CSOM – Javascript – SharePoint 2013
We need to first create the field with a field name like xxxFieldName with no spaces. This will be our internal name. Now, we need to change the display name from xxxFieldName to ‘The Field Name’ without changing the internal name. Unfortunately, the internal name gets gets changed to ‘The Field Name’.
&Field=The%5Fx0020%5FField%5Fx0020%5FName
we need
&Field=xxxTheFieldName
We used PowerShell scripts before. It works fine. The field Internal names stay as they were when first created and only the display name changes.
There are some significant bugs in CSOM Javascript.
Here is the answer to my question.
When first creating the field using JSOM, I am using oFields.addFieldAsXml.
The xml field node string MUST have the DisplayName attribute value set to the Internal Name before calling addFieldAsXml.
Once the field is created, using set_title will not change the field’s Internal Name.