List with multiple categories/sub-categories

Home Forums Classic DFFS List with multiple categories/sub-categories

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #38744
      Andra Mitchell
      Participant

        I have a list that has multiple categories/sub-categories. My SharePoint site is open access and anyone can submit an IMR however I need to restrict certain categories/sub-categories to a certain group. Meaning only that group can submit those two categories and if anyone from the primary group selects the link, they receive an error message. Is this possible?

      • #38745
        Alexander Bautz
        Keymaster

          I’m not 100% sure I understand what you mean, but to hide options in a dropdown select from users not member of a specific group you can use a rule that triggers on SharePoint group membership: Logged in user is NOT member of group and in the Run these function / Evaluate these rules section you type in the function name of the function (hide_dropdown_options).

          Add this function to your Custom JS and replace “ChoiceColumn1” with the internal name of your choice field. Look at the example in the function and change the array of options to hide.

          function hide_dropdown_options(){
              const fieldInternalName = "ChoiceColumn1";
              const optToHide = ["Option 2", "Option 3"];
              document.querySelector("#dffs_" + fieldInternalName).querySelectorAll("option").forEach((opt, index) => {
                  // console.log(opt.index, opt.value);        
                  if(optToHide.includes(opt.value)){
                      opt.style.display = "none";
                  }
              });
          }
          

          Alexander

        • #38746
          Andra Mitchell
          Participant

            My Inquiry List is broken out into individual links that users select based on the question.
            For example: Accountability Matrix Updates http://sharepoint3.companyname.com/sites/PPC/Lists/InquiryList/NewForm.aspx?Category=166
            I currently have two membership groups (Submitter and Responder) and now I need to add a third membership group (PMO).
            I am using the rule that triggers on SharePoint group membership: Logged in user is NOT member of group as well as SharePoint group membership: Logged in user is member of group.
            Users in the Submitter group can select the individual links however there are three individual categories/links that I am trying to restrict to the third membership group so they are the only ones that can submit those three categories.
            Is this possible?

            • #38747
              Alexander Bautz
              Keymaster

                Hi,
                Can you email me some screenshots so I’m 100% sure what you mean by “Categories/links”?

                You can find my email address in the contact tab at the top of the page.

                Alexander

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