OnLoad Client Script - How to auto populate / fill up user details for the fields ??

Jason Lau Chang
Giga Contributor

Hi Team,

Would like to create the OnLoad Catalog Client Script that when the user is loading the form, it will auto populate / fill up some user details in the form, how do I start ??

Thank you!!

 

1 ACCEPTED SOLUTION

Hi Jason

Basically you want to populate the requested for as soon as the form loads

If yes there are 2 ways 

1.Default Value :You can use it by modifying the variable default value

find_real_file.png

 

2. In onload client script use

g_form.setValue('requested_for',g_user.userID);

Regards

Pranav

 

View solution in original post

10 REPLIES 10

kranthi vempara
Kilo Contributor

Hi 

I have a task that is 

i have a table called candidate information . Populate the logged in users first Name and Last Name in corresponding fields in Candidate Information table. how to do this task .suggest me