i want the javascript code to retrieve user full name from the logged in user name on the custom entitiy
*This post is locked for comments
I guess that your function is called on OnLoad event.
If yes, you should check in your function if the current value on field is different of the userName retrieved, and maybe add a setSubmitMode on your code.
Can you please share your code?
when i click on save button under record it is displaying unsaved changes when click once again on the button the record is saved
What do you mean exactly by "the record is saved for two clicks"?
Hi Mahadeo thanks for reply,it is working good but the record is saved for two clicks,what is the reason behind
Note : Here i am populating the current username to custom text field.
Hi,
There is one method in Xrm.Page.context, which will give you logged in username
var username = Xrm.Page.context.getUserName();
for more details please check
I think you should use Xrm.Page.context.getUserName(); from javascript
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156