Possible bug with group membership rule

Forums Dynamic Forms for SharePoint Possible bug with group membership rule

Viewing 4 reply threads
  • Author
    Posts
    • #36077
      Andrew Neill
      Participant

      Hey Alexander,

      It’s my first time posting, but I’ve been using DFFS for a while. Thank you for all your work on this great tool.

      I think I may have found a bug related to rules. I’m using the trigger “SharePoint group membership: Logged in user is member of group”, which validates on “Form load and field change”. The rule is supposed to make certain fields visible to members of a group. I’ve tested the rule by adding and removing myself from the group entered under “This value”; however, the fields associated with the rule remain visible whether or not I’m in the group.

      When I tried adjusting the rule to make the target fields hidden rather than visible, the rule worked. When I added myself to the group, the fields became hidden; when I removed myself, the fields became visible.

      I believe there’s an error when using the trigger I noted and the “Visible fields” result. I’ve attached a screenshot of my rule configuration. Would you please look into this?

      Here’s my DFFS version info:
      v4.4.5.45 – July 18, 2022|CSS version: 4.51 / 4.51 |spjs-utility version: 1.356|Loader version: v1

      Thank you!

    • #36079
      Alexander Bautz
      Keymaster

      Welcome to the forum!

      I’ll try to recreate this issue, but I’m wondering if you might have other rules that addresses the same fields? – there could be some interfering if you have multiple rules targeting the same fields.

      Alexander

    • #36081
      SteveE
      Participant

      I think I’ve kind of seen this before and solved it by doing the inverse “if NOT in this group” and then hiding the fields. Not sure why it happens like that but it was easier to just invert my thought process and rule.

    • #36082
      Alexander Bautz
      Keymaster

      OK, thanks for the clarification – I’ll look into in in the next version.

      Alexander

    • #36083
      Andrew Neill
      Participant

      Steve – Thank you for this suggestion. I tried inverting the rule, and it worked!
      – Trigger: SharePoint group membership: Logged in user is NOT member of group
      – Hidden fields

      Alexander – When I tested the original rule configuration (user IS member of group / visible fields), I tried disabling my other rules that address the same fields, and it had no effect. The target fields remained visible whether or not I was in the group. Also, the other rules don’t affect the visibility of the target fields.

      Please let me know if you have any other questions. Thank you for looking into this in future versions.

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