- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 12:08 AM
Hello,
I'm not sure if this is possible but thought it might be worth the question. I have created a catalog item for a SIM card activation and have created a reference variable so that when a laptop is selected the user has to locate their laptop number, of which the laptop number and SIM details from the CMDB computer table are displayed. However, I would like to create a new variable/field and have the SIM details display in this field as a read only on catalog task view. The SIM details will need to be dependent on the computer that is selected in the reference variable. Is this achievable?
I have tried creating a new single line text variable and an 'onsubmit' catalog client script to populate this field but it has not worked. (tried: g_form.setValue() ).
Thanks in Advance 🙂
Danelle
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 05:44 AM
Hi Danelle,
You can do this with an onChange or onSubmit Catalog Client Script using getReference or GlideAjax
In the Utah release and later, this can be done using the new variable auto-populate feature without a script.
Since you don't need to see these variables populated on the request form, you can also use a server script on your Flow or Workflow to do this after the request is submitted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 05:44 AM
Hi Danelle,
You can do this with an onChange or onSubmit Catalog Client Script using getReference or GlideAjax
In the Utah release and later, this can be done using the new variable auto-populate feature without a script.
Since you don't need to see these variables populated on the request form, you can also use a server script on your Flow or Workflow to do this after the request is submitted.