SharePoint JavaScripts

  • Home
  • Products
    • Classic DFFS
      • Product page / buy a license
      • Installation manual
      • User manual
      • DFFS Plugins
        • vLookup for SharePoint
          • Product page
          • User manual
          • Setup example
          • Change log (SP2010 and SP2013)
          • Change log (SP2007)
          • Forum
        • SPJS-Cascading Dropdowns
        • SPJS-Autocomplete
        • SPJS-Lookup
        • Other plugins
      • Styling forms
      • Forum
      • Change log
    • Modern DFFS
    • SPJS Charts for SharePoint
      • Product page / buy a license
      • User manual
      • SPJS Charts – Custom Datasource
      • v6 Change log
      • v7 Change log
    • CommentBox for SharePoint
      • Product page / buy a license
      • v2.x Installation manual
      • v3.x Installation manual
      • v2.x Change log
      • v3.x Change log
    • Modern CEWP
  • Partners
    • Partners
    • Partner registration
  • Forums
  • Archives
  • Contact
  • Copyright and disclaimer

Trouble with field and current user email matching

Home › Forums › Modern DFFS › Trouble with field and current user email matching

Tagged: currentuseremail Email Person field

  • This topic has 2 replies, 2 voices, and was last updated 9 months, 2 weeks ago by AdamP.
Viewing 2 reply threads
  • Author
    Posts
    • July 24, 2024 at 11:45 #37824
      AdamP
      Participant

        Hi Alexander

        v1.0.63.0
        I ran into a bit of a problem with what I thought was a fairly straightforward set of rules that just compare person fields with the current user.
        A simple match of person field email to current user email failed, even though it was the same person (me).

        I think it’s partially self-inflicted in so far as for some reason our email addresses and user principal names are capitalised (in Entra), and the rule comparison is expecting an exact match on the email string.

        It looks like your code is doing some conversion to all lowercase in some situations, but not all. I’ve added in extra logic that acts as a workaround but hopefully could be a relatively simple fix for a future release?

        See attached screenshots for a better explanation.

        [[fieldValue:PersonField.email]] – lowercase
        [[fieldValue:Author.email]] – not changed
        [[fieldValue:Editor.email]] – not changed
        [[currentuser:email]] – not changed
        [[currentuser:loginName]] – lowercase

        Thanks

        Adam

        Attachments:
        1. email-fields.png

        2. Rule-config-workaround.png

      • July 25, 2024 at 10:03 #37827
        Alexander Bautz
        Keymaster

          Thanks for the detailed description – I’ll get this fixed in a new version over the weekend or early next week.

          Alexander

        • July 26, 2024 at 11:47 #37831
          AdamP
          Participant

            Thank you, that would be great. If you need any more info please let me know.

        • Author
          Posts
        Viewing 2 reply threads
        • You must be logged in to reply to this topic.
        Log In
        Your cart is empty
        Are you happy with the support?
        I don't currently charge anything for support, but I spend a lot of time supporting both paid and free solutions. I appreciate it if you put some money in my piggy bank!
        Icon by mynamepong from www.flaticon.com
        Log in

        Recent Topics

        • Modern CEWP – Hide or remove Saturday and Sunday from List Calendar View by Wayne Thompson
          13 hours, 1 minute ago
        • Modern DFFS v1.1.12.0 has been released by Alexander Bautz
          1 day, 11 hours ago
        • Hide or remove Saturday and Sunday from List Calendar View by Wayne Thompson
          1 week ago
        • Modern DFFS v1.1.11.0 has been released by Alexander Bautz
          1 week ago
        • Modern DFFS v1.1.10.0 has been released by Alexander Bautz
          1 week, 2 days ago
        • Install on Parent & Subsite + Saving doesn’t leave form by Jonathan Stamper
          1 week ago
        • Modern DFFS v1.1.9.0 has been released by Alexander Bautz
          2 weeks, 1 day ago
        • Modern DFFS v1.1.8.0 has been released by Alexander Bautz
          3 weeks ago
        • Modern DFFS v1.1.7.0 has been released by Alexander Bautz
          3 weeks, 2 days ago
        • Custom JS by Wendi Watson
          3 weeks, 3 days ago

        Recent Replies

        • Wayne Thompson on Modern CEWP – Hide or remove Saturday and Sunday from List Calendar View 13 hours, 1 minute ago
        • Alexander Bautz on Modern CEWP – Hide or remove Saturday and Sunday from List Calendar View 14 hours, 41 minutes ago
        • Jonathan Stamper on vLookup – Add new items to this folder – not working 3 days, 8 hours ago
        • Alexander Bautz on vLookup – Add new items to this folder – not working 3 days, 10 hours ago
        • Jonathan Stamper on vLookup – Add new items to this folder – not working 4 days, 9 hours ago

        Recent Posts

        • Modern DFFS updated with new installation method
          by Alexander Bautz
          March 2, 2025
        • Modern DFFS v1.0.70.0 has been released
          by Alexander Bautz
          October 13, 2024
        • Modern DFFS v1.0.68.0 has been released
          by Alexander Bautz
          September 15, 2024
        • Modern DFFS v1.0.67.0 has been released
          by Alexander Bautz
          September 12, 2024
        • Modern DFFS v1.0.66.0 has been released
          by Alexander Bautz
          September 4, 2024

        Forums

        • General discussion
        • Modern CEWP
        • Modern DFFS
        • Cascading dropdowns
        • SPJS-Lookup
        • Classic DFFS
        • vLooup for SharePoint
        • SPJS Charts for SharePoint
        • Comment box for SharePoint
        • Autocomplete
        • SPJS-Utility
        • Requests

        Search Forums

        Copyright © All Rights Reserved.
        • About the solutions
        • Archives
        • Classic DFFS
          • DFFS: Installation manual
          • DFFS: Privacy Policy
          • DFFS: Styling
          • DFFS: User manual
          • DFFS and plugins: Change log
            • dffs-change-log-archive
          • DFFS Plugins
            • SPJS-Autocomplete
            • SPJS-Cascading dropdowns
            • SPJS-Lookup
        • CommentBox for SharePoint
          • CommentBox Change log
          • Commentbox v3.x change log
          • Installation manual
          • Installation manual v3
        • Contact
        • Copyright and disclaimer
        • Forums
        • General tips
        • Home
        • License types and Partner program
        • Modern CEWP by SPJS
        • Obtain License Code
          • CommentBoxForSharePoint
        • Partner registration
        • Partners
        • SPJS Charts for SharePoint
          • SPJS Charts for SharePoint user manual
          • SPJS Charts for SharePoint v7: Change log
          • SPJS Charts for SharePoint: Change log
          • Using custom datasource in SPJS Charts v7
        • Thank you!
        • vLookup for SharePoint
          • vLookup Change log
          • vLookup setup example for SP 2010 and 2013
          • vlookup-2007-change-log/
          • vLookup: User manual