Hi,
I'm trying to update a "log/history" field with the following js code in the text element 'action_taken', "on blur" :
$('snags___history').value = $('snags___logged').get('value') + ' wrote: ' + $('snags___date_time_cal').get('value') + ': ' + $('snags___action_taken').get('value') + '\n ' + $('snags___history').get('value');
The element 'snags___logged' is an hidden user element, update on edit.
The only problem is that $('snags___logged').get('value') always returns the user ID, while I would need the user name.
Any hint?
Thanks a lot
I'm trying to update a "log/history" field with the following js code in the text element 'action_taken', "on blur" :
$('snags___history').value = $('snags___logged').get('value') + ' wrote: ' + $('snags___date_time_cal').get('value') + ': ' + $('snags___action_taken').get('value') + '\n ' + $('snags___history').get('value');
The element 'snags___logged' is an hidden user element, update on edit.
The only problem is that $('snags___logged').get('value') always returns the user ID, while I would need the user name.
Any hint?
Thanks a lot