Variable showing backend name on catalog task of field short description.

Raghav22
Tera Contributor

In catalog task of short description field I want to auto populate the Project name and type of service request, For project name it is showing proper variable name because it is string type and for type of service request It is taking backend name of variable (type_of_service_request), field type is dropdown.

Do you have any idea what should be done?

find_real_file.png

Catalog task--> short description

find_real_file.png

Thanks,

Raghav

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you need to use inline script using f(x) and get the display value

find_real_file.png

var project = fd_data.trigger.request_item.project_name;

var type = fd_data.trigger.request_item.type_of_service_request.getDisplayValue();

return 'Project name: ' + project + ';' + ' Type of Service Request: ' + type;

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

13 REPLIES 13

No No

Thanks,
Shakeel Shaik 🙂

first open your catalog item, and then Open that choice variable.

 

Thanks,
Shakeel Shaik 🙂

didn't get your point. i have open catalog item and open that variable

find_real_file.png

 

 

Infind_real_file.png

 

now change the Value same as Text

Thanks,
Shakeel Shaik 🙂

Hi @Raghav 

 

 

If my response is helpful, then Please mark as Correct Answer/Helpful.

Please check and let us know.

Thanks 🙂

Shakeel Shaik.

 

Thanks,
Shakeel Shaik 🙂