I have created a list and a form to add data to the list but the Created by and Modified by are showing as "# Portals-Aftercare Portal" as shown below.
How do I get it to show the real user who added the data?
Created by and Modified by not showing proper user
As the previous post stated, the out of the box created by & modified by will be the portals service account. Please note you cannot update the out of the box Owner or Created By/Modified By fields via metadata.
To record the portal user making the change, add a Lookup (or 2) to the Contact table to your table (e.g. call it Created By Portal User), then either use settings on the Form (Associate Current Portal User) or form metadata (Set Value On Save) to set the Contact Lookup with the current portal user's contact.
Created by and Modified by not showing proper user
The issue arises because when a form is submitted via a Power Pages portal, the Created By and Modified By fields reflect the service account (# Portals-Aftercare Portal) that submits the data, not the actual logged-in user's details
Go to Entity Forms or Basic Forms. Select the form being used for data submission. In the Entity Form Metadata section: Add a new metadata entry for the Owner field. Set it to the current logged-in user by enabling the Populate Current Portal User option.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.