im not getting current logged in user phone number plese help me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 05:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 07:43 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 07:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2024 07:45 AM
If the solution that I have posted is correct could you please mark the solution as complete
Thanks and regards
Sai Venkatesh