Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
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:
  • Fubar Profile Picture
    7,960 Super User 2025 Season 1 on at
    Re: Form create incident : client field

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >