web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Form create incident :...
Power Pages
Unanswered

Form create incident : client field

(0) ShareShare
ReportReport
Posted on by 26

Hello everyone


 How can I automatically obtain the user's name in a client field?

 

oussouss_0-1691062927071.png

 

Categories:
I have the same question (0)
  • Fubar Profile Picture
    Super User 2026 Season 1 on at

    Several options

    // populate lookup, assumes the user is logged in 
    // and the script is in a Web Template or Web Page Content where the Liquid user object is available
    // I have freehand typed most of this so there could be some syntax issues etc
    
    $(document).ready(function() { 
     var contactId = "{{ user.id }}";
     var contactName = "{{ user.fullname }}";
    
     $(“#yourfieldlogicalschemaname_name”).attr(“value”,contactName); 
     $(“#yourfieldlogicalschemaname”).attr(“value”,contactId); 
    
     // account instead of contact if populating with an account record
     $(“#yourfieldlogicalschemaname_entityname”).attr(“value”,”contact”); 
    });

     

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 31

#3
11manish Profile Picture

11manish 18

Last 30 days Overall leaderboard