Skip to main content
Nintex Community Menu Bar

Is it possible to change the ListView contorl's column label?

  • November 30, 2017
  • 2 replies
  • 9 views

Forum|alt.badge.img+10

I have a List View control on the Nintext Form (Ver: 2.11) and I want to rename the column header label instead of SharePoint column name.

Thanks

2 replies

Forum|alt.badge.img+11
  • Nintex Partner
  • December 6, 2017

Hi Sojan,

you will need some JS/Jquery to do that. The column headers are inside a DIV with a "name" property where this properties value is just the column name (use browsers DEV tools to inspect the DOM Structure at this point). This will enable you to query the element you want to change.

Something like

$("div[name='ColumnName']").text("WhateverUWant")

Should do the trick.

Cheers

Philipp


Forum|alt.badge.img+10
  • Author
  • December 6, 2017

Thanks Philipp, It worked.

I was using the below code, it does work sometimes.

NWF$("a.ms-headerSortTitleLink").filter(function () {
var idclm1 = this.id.match(/diidSort[0-9]ColumnName/);
if(idclm1)
{
 NWF$('#'+idclm1).text('Something');
}

});