cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

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

Jump to solution

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

Reply
2 Replies
Highlighted
Automation Master
Automation Master

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

Jump to solution

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

View solution in original post

Reply
Highlighted
Nintex Newbie

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

Jump to solution

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');
}

});

0 Kudos
Reply