- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2014 07:18 AM
Hi SNC,
I have an UI Action button which basically needs just to set some fields to certain values.
What I need though is a way to check if a field is empty and if so, populate it with the current logged on user.
Should I be looking for something like this or there is a simpler way?
http://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2014 08:10 AM
Let me think .. First, why do we need a client + server side button for this ?
Can't we just use this and have a simple UI action without client action involved ?
if(current.field == '')
{
current.userField = gs.getUserID();
}
Makes sense????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2014 02:12 AM
Sounded like the easiest approach, but totally worked. Thanks!