SHarePoint online field renaming

Forums Dynamic Forms for SharePoint SHarePoint online field renaming

This topic contains 1 reply, has 2 voices, and was last updated by  Alexander Bautz 1 month ago.

  • Author
    Posts
  • #20585

    Jay Nebben
    Participant

    In the new form i’ve been using the code below to rename fields:

    $(spjs.dffs.fields[“Internalname”]).find(“td.ms-formlabel h3 nobr”)[0].childNodes[0].nodeValue = “NewName”;

    This does not seem to be working in Office 365. Error message attached

    Attachments:
  • #20608

    Alexander Bautz
    Keymaster

    In office 365 there are no h3 node (just a span with class ms-h3). Try changing it like this:

    jQuery("#dffs_FIELDINTERNALNAME").find("td.ms-formlabel nobr")[0].childNodes[0].nodeValue = "NewName";

    Alexander

You must be logged in to reply to this topic.