Hi guys. I need your help to put User Name/ID in footer tag. Does anyone know how to achieve it? Thanks
You can use this js code snippet to get the user who’s viewing/printing the document:
<div id="user-name"></div>
<script>
var user = document.querySelector('a[href*="change-password-form"]').innerText;
document.getElementById("user-name").innerText = user;
</script>
Be warned though that it’s a hack that’s not guaranteed to work in the future.
I forgot to mention that exposing the username to documents is on the radar of the developer which means that your request will eventually make it into production, hopefully, in more details like: created by, modified by, and current user.
I don’t see an idea in the forum that shows this, therefore, I think I’m going to place this in ideas as well
Thank you for the workaround. But this code shows the logged-in user’s name instead of the form creator’s name. I need a way to display the form creator’s username (e.g., Username A) regardless of who is currently logged in and viewing the form.
Appreciate your help.
If you use Cloud or Server edition which is multi-user then the logged-in user’s name would appear. For desktop edition it is always the single systems user and there is no alternative to that except to create custom fields and show these in footers.
Dear @lubos,
The lack of optimised audit trails, workflow approval, user activity tracking of custom fields is creating significant challenges in monitoring and accountability, making it difficult to manage daily operations effectively.
Could a temporary solution be implemented to address this need by footer tag of creator/updater until a permanent feature is available? This functionality has become essential for our day-to-day work.
Thank you for considering this.