Auto populate the values using glideajax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 06:55 AM
I have selected the requested for then auto populate the manager and country;
Please find the below one's.
And i am using the below script
Script inculdes:
Onchange client script:
Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 07:45 AM
Try using this script. Things which are in Bold are corrected
Script:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 08:17 AM - edited 12-19-2023 08:03 PM
Hello @vinod6,
Instead Glide Ajax and script include(BIG code), you can explicitly use client script(little code) to achieve this.
Write OnChang Client script on requested for variable.
Hope this finds your easy solution.
Please appreciate the efforts of community contributors by marking appropriate response as correct answer✔️ and helpful👍, this may help other community users to follow correct solution in future.
Happy to help you in future😎.
Thank you,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 10:55 AM
Is the version of the instance Utah, or newer?
If yes, you could use the Auto-populate feature of Catalog Variables.
Not a single line of code would be needed.
If not, your code should work with a couple of corrections:
- JavaScript is case sensitive, so getparameter is not the same as getParameter; therefor you need to correct
var usr = this.getparameter('sysparm_user');
to
var usr = this.getParameter('sysparm_user');
When you are unsure, AbstractAjaxProcessor is a plain regular Script Include, you could open it up and have a look.
As suggested previously by @Shamma Negi.
- When setting up the sending of the selected user, you need to pass in the variable newvalue, not the string newvalue; therefor you need to correct
ga.addParam('sysparm_user', 'newvalue');
to
ga.addParam('sysparm_user', newvalue);
b.t.w. you need to mind case here too: the correct form - OOB is newValue not newvalue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 11:11 AM - edited 12-08-2023 11:15 AM
This looks like a catalog item to me and if that's so you can use Auto-Populate option in the Maitain Catalog Item form.