I am using JSLink to override a TextArea column on SharePoint 2013, when I am trying to get the field value using ctx.CurrentItem[ctx.CurrentFieldSchema.Name] on display form, it warps the value with an div element "<div dir="">.

However, on New and Edit forms, ctx.CurrentItem[ctx.CurrentFieldSchema.Name] return the value correctly without the div element.

So can I get the value from field without "<div dir=""> ? Thanks

(function () {
rendering functions
var overrideCtx = {};
overrideCtx.Templates = {};
overrideCtx.Templates.Fields = {
    'Tile': { 'View': renenderTileField, 'DisplayForm': renenderTileField }


function renenderTileField(ctx) {
    var fieldVal = ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    var html = [];
    html.push('<div class="col">');
    var content = generateHtmlForField(pickerObject, titleFieldVal);
    return html.join('');


1 Answer 1


JQuery helps you:

  • 1
    Sorry for inconvenience. It was not some misunderstanding from my side. I roll backed my review. Oct 7, 2016 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.