How do I add text to a Request Short description Field via Lists?

eddiemorales
Tera Contributor

We are trying to have the short description field populated in list details with the respective service catalog request so users can have more visibility.

Thanks!

7 REPLIES 7

Hi eddiemorales,



Did you able check the solution which I have provided in my last response? If the provided solution helped you to achieve your requirement, please mark the answer Correct and close the thread.


Sampath8
Giga Expert

Hi Eddie,



Place the below mentioned code in the default value of the catalog item variable and map the field to the short description field on the Request form.


Code: javascript:if (GlideTransaction.get().getRequest()) {var uri = gs.action.getGlideURI();var sys_id=uri.get('sysparm_id');if(!sys_id) sys_id = uri.get('sys_id');var gr = new GlideRecord('sc_cat_item');gr.get(sys_id);gr.name;}



Please refer the screenshot.



Capture 123.PNG




Regards,


Sampath.


eddiemorales
Tera Contributor

I am sorry for late response. Your post was extremely helpful! Thanks!