im not getting current logged in user phone number plese help me

veeramohanreddy
Tera Contributor

Create a custom table – table name Current User
Create a fields –
1.current Logged in user – string – automatically populate current logged in user Name.
2.current date –date – automatically populate current date
3. current time – time – automatically populate current time
4.phone number – string – automatically populate current user phone number
5.email -string – automatically populate current user email
6.all fields are readonly.

3 REPLIES 3

Siddhesh Jadhav
Kilo Sage

Hi @veeramohanreddy ,

 

Could you please provide the script for populating the current user's phone number and any other changes you've made? This would help clarify the implementation details for the custom table you mentioned.

 

Thank you!

SAI VENKATESH
Tera Sage
Tera Sage

Hi @veeramohanreddy 

 

You can try the below script 

Clientscript: 

function onLoad() {
   //Type appropriate comment here, and begin script below
   var userdetails=g_form.getReference('user_name', callback);

   function callback(userdetails){
	g_form.setValue('email',userdetails.email);
	g_form.setValue('mobile_number',userdetails.mobile_phone);
   }

}
   

 

Regards

Sai venkatesh

 

Hi @veeramohanreddy 

 

If the solution that I have posted is correct could you please mark the solution as complete

 

 

Thanks and regards

Sai Venkatesh