I have a button that collects the currently logged in users email address that is working for most of the 7k plus users accessing it. I have 20 tickets for users that the function is not working for. The current code that the growing number of users are having an issue with is:
<script language="javascript" type="text/javascript" src="https://.../sites/assets/SiteAssets/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="https://.../sites/assets/SiteAssets/jquery.SPServices-2013.01.js"></script>
<!-- END -->
</head>
<body>
<script type="text/javascript">
var thisUserAccount = $().SPServices.SPGetCurrentUser({fieldName: "EMail", debug: false});
In the code above, the email address is returned for most users, but for a growing number of folks, thisUserAccount is blank.
I have also tried SipAddress with the same outcome.
If I change to Title, the users experiencing the problem return their name correctly. I have been working on this for an entire day and hope someone can help.
Office 365, Windows 7, IE10
Comments: I just fixed the issue and hope this post will help future users experiencing the problem. for 90% of the people the code above worked. Changing the double quotes around EMail to single quotes fixed all users who were experiencing the issue. Changed fieldName: "EMail", debug: false}); TO fieldName: 'EMail', debug: false});
<script language="javascript" type="text/javascript" src="https://.../sites/assets/SiteAssets/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="https://.../sites/assets/SiteAssets/jquery.SPServices-2013.01.js"></script>
<!-- END -->
</head>
<body>
<script type="text/javascript">
var thisUserAccount = $().SPServices.SPGetCurrentUser({fieldName: "EMail", debug: false});
In the code above, the email address is returned for most users, but for a growing number of folks, thisUserAccount is blank.
I have also tried SipAddress with the same outcome.
If I change to Title, the users experiencing the problem return their name correctly. I have been working on this for an entire day and hope someone can help.
Office 365, Windows 7, IE10
Comments: I just fixed the issue and hope this post will help future users experiencing the problem. for 90% of the people the code above worked. Changing the double quotes around EMail to single quotes fixed all users who were experiencing the issue. Changed fieldName: "EMail", debug: false}); TO fieldName: 'EMail', debug: false});