get Referenc was not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
am trying to alert logged in user name with get reference but it not working, am don't know why variable was greyed out even i have called it on function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @ArunaTunga ,
Can you try with this:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || !newValue)
return;
g_form.getReference('caller_id', caller);
g_form.getReference('assigned_to', assigned);
}
function caller(user){
var x = user.name.toString();
alert(x);
}
function assigned(assign){
var y = assign.name.toString();
alert(y);
}
Best Practice: It is highly recommended to use GlideAjax instead of getReference for better performance and reliability
