Hi -
We've just started using Forms for web.
Not all users display their email address in the account control. And I can't pick up the same users' email addresses to use on the form's returned data.
I've got a form set to allow only authenticated users and then I'm writing the form to a SharePoint list. Authentication is set to pick up members of an Entra group that contains staff on our tenancy, other tenancies and Microsoft account users. We've got the same users on the SharePoint site. Everyone can access whatever they should be able to access.
- All users can complete the form (embedded on a SharePoint page which they can access.
- Users on our tenancy display the name and email address in the account control.
- Guest users added our tenancy sometimes display the name and email address in the account control.
- Guest users added our tenancy sometimes don't display the email address in the account control but the username displays fine.
- I've checked the guest accounts in Entra and the email address is always filled out consistently.
I'm then picking up the account control content to copy to a SharePoint list but the same users don't get an email address in the list. I'm using
// Pre-populate SharePoint columns with username and email address
fd.field('Plumsailuser').value = fd.control('AccountDetails').displayName;
fd.field('PlumsailEmail').value = fd.control('AccountDetails').email;
The username always appears but the email address sometimes doesn't.
I've also tried (from another topic on here)
fd.field('PlumsailEmail').value = fd.account.username;`
But that does exactly the same.
Any suggestions? Please?