Need to Add Same Label

Forums General discussion Need to Add Same Label

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #11739
      Adamya Kant
      Participant

      I need to add same label for different fields.
      Lets say I have 2 choice fields. I need to show same label on the form say “Add New Row” for both of them.SharePoint restricts me to keep 2 same labels.

      How Can I do that?

    • #11779
      Alexander Bautz
      Keymaster

      Hi,
      You can put this in the Custom JS in DFFS:

      // NewForm or EditForm
      $("#dffs_NAMEOFCOLUMN").find("td.ms-formlabel nobr")[0].childNodes[0].nodeValue = "Add New Row";
      
      // DispForm
      $("#dffs_NAMEOFCOLUMN").find(".ms-standardheader").text("Add New Row");

      Change “NAMEOFCOLUMN” to your field internal name.

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.