SHarePoint online field renaming

Forums Dynamic Forms for SharePoint SHarePoint online field renaming

Viewing 3 reply threads
  • 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

    • #21613
      Rick Cedergren
      Participant

      What is the syntax difference for the display form? Your example is working in the new/edit forms, and I’ve tried several variants for the display form without success. We’re using SP 2016 on-prem.

      Thanks.

    • #21629
      Alexander Bautz
      Keymaster

      Hi,
      In DispForm the HTML structure is different – try using this:

      jQuery("#dffs_FIELDINTERNALNAME").find(".ms-standardheader").text("NewName");

      Alexander

Viewing 3 reply threads
  • You must be logged in to reply to this topic.