JS that utilizes the “Group ID” functionality?

Forums Dynamic Forms for SharePoint JS that utilizes the “Group ID” functionality?

Viewing 2 reply threads
  • Author
    Posts
    • #35884
      Jon Whisman
      Participant

      We have forms that use pure JS – no rules in dffs back-end.

      I would like to leverage the Group ID functionality to bulk control groups of fields / headers, etc. in the form (hide this group, show that group, read only this group, etc.)

      Is there SPJS syntax to utilize the group IDs?

      EG:

      //un-hide fields
      spjs.dffs.unhideFieldsByRule([
      TabGroup_xxx
      ]);

    • #35886
      Alexander Bautz
      Keymaster

      The fields in the tabgroup can be found as an array in this object:

      spjs.dffs.data.dffsDataObj.data.groupToFin
      

      This means you can loop over the fields in a group like this:

      jQuery.each(spjs.dffs.data.dffsDataObj.data.groupToFin.YOUR_GROUP_NAME, function(i, fin){
          // do something with fin here
      });
      

      Alexander

    • #35892
      Jon Whisman
      Participant

      AWESOME! THANK YOU, Alexander!

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