- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 03:11 PM
Hello -
There is an OOTB UI Action called Reset a Password which is enabled as part of the Password Reset Plugin. We will be using this so our Agents can easily get to the Help Desk password reset process. The UI action works great - I copied it and put it on the Incident table so we could use it as a link right on the form. I slightly modified it so it would pass through the Caller IDs sysID into the URL.
The only issue is that it opens in the same window and trying to get back from that Password reset screen is less than ideal. I would like for this to open in a new Window. I have looked through previous posts about using window.open by using Client script, but it I am struggling getting the code right to actually pass through that sysID for the caller in the URL.
Here is the UI action where it opens in the same window (using setredirect):
action.setRedirectURL('$pwd_reset_serviceDesk.do?sysparm_user=' + current.caller_id.sys_id);
Could someone please help me out so that I can get this exact same functionality, but have it open in a new window?
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2017 09:20 AM
I am not sure, if it will be g_user.caller_id. can you print g_user.caller_id and see what value you are getting. I think it should be g_form.getValue('caller_id')
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2017 09:15 AM
Can you determine how the user is being populated when it opens in the same tab (e.g. does it use sysparm_user, or something else.)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2017 09:20 AM
I am not sure, if it will be g_user.caller_id. can you print g_user.caller_id and see what value you are getting. I think it should be g_form.getValue('caller_id')
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2017 10:29 AM
Thanks so much for your help and guidance! That did the trick: g_form.getValue('caller_id')
This UI Action is working exactly the way I was hoping for, thanks again!
Best user community, ever!