Auto populate category and subcategory

WP2
Kilo Guru

Hi All,

I need help auto populating Category and Subcategory fields on RITM and SCTask forms after the request has been submitted. I tried using the workflow and BR but no luck.

The Category on ritm and sctask should auto populate e.g "resource"

while subcategory should auto populate based on the selected option from a multi choice variable.

Variable name: "type_of_request"

Choices: 1. Alpha Del, 2. Bravo Del, 3. Charlie Del

How do I auto populate the category field on RITM and SCtask with ''resource" and subcategory field based on the option selected from "type of request"?

Thank you for your help.

1 ACCEPTED SOLUTION

Tim Deniston
Mega Sage
Mega Sage

You can access the variable on the server side by using "current.variables.type_of_request" and set the subcategory field (I assume a custom field, as there isn't one out of the box) like this: 

 

current.setValue('u_category', 'resource');
current.setValue('u_subcategory', current.variables.type_of_request);

"current" might vary based on how you're generating the RITM and SCTask records.

View solution in original post

3 REPLIES 3

Tim Deniston
Mega Sage
Mega Sage

You can access the variable on the server side by using "current.variables.type_of_request" and set the subcategory field (I assume a custom field, as there isn't one out of the box) like this: 

 

current.setValue('u_category', 'resource');
current.setValue('u_subcategory', current.variables.type_of_request);

"current" might vary based on how you're generating the RITM and SCTask records.

Would this be a BR?

Thank you, Tim