Passing values into a Wizard variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2017 08:12 AM
I have a wizard that is being called from a Project record through a UI Action. I would like to pass the project number into my reference variable on my wizard panel.
Here is my UI Action script code that I use to call my Wizard.
var view = action.get('sysparm_view');
action.setRedirectURL('expert_shell.do?sysparm_sys_id=19a2b335dbc6ba0056d2fd441d9619c8&sysparm_initial=true&sysparm_project=c6304248f5da4140a17bd70aa31f5700&sysparm_sales_order=feab98b7ec5d79005e5a5a2ba46a2f23&sysparm_view=' + view);
action.setNoPop(true);
project is my variable name on my wizard.
I am stuck.
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2017 08:47 AM
Hi Rob,
The wizard doesn't have any functionality setup by default to retrieve the url parameters and populate a variable, so you need to do it in an onload client script and populate a variable. You would do it on a wizard the same way as a catalog item/record producer.
3 Ways to Populate Values in ServiceNow via the URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2017 09:08 AM
Hi Brad,
Thanks that seems to work.