How to add Variable Editor (Formatter) on the Catalog Task page?

R-D
Tera Contributor

Hey, I want to add the Variable Editor (Formatter) to the catalog task page where you can see the details of the task. Like this picture:

Like thisLike this

I tried to add the variable editor by editing the form design but it did not work. Can some one show me how to do it. 

 

Thanks. 

 

Here is the picture of the variable editor that shows the answers typed by the user while submitting  a service catalog:

42.PNG

 

 

1 ACCEPTED SOLUTION

OK, so that confirms that there's not a mismatch between the view in Form Designer and the one you're using when looking at catalog tasks.  So my assumption is that you need to update your workflow to copy the variables from the RITM to the task.  This is done in the Catalog Task creation activity as shown below.  (Alternatively, if you always want to copy all variables, you could create a script in an insert BR on the sc_task table.)

ronprice_0-1680795387795.png

 

View solution in original post

8 REPLIES 8

ronprice
Giga Guru

One other thought - you didn't mention how you were creating the tasks.  If from a Flow you need to be sure to identify which variables to include from the RITM when you create the Task.  If from a Workflow, you need to have code, possibly an Insert BR on sc_task, that copies the variables.

R-D
Tera Contributor

Hey @ronprice,

Here is the screenshot that you asked for. One including the form design view and the other one is the active view pane from the actual task page.

4.png43.PNG

 

And the answer to the following question is yes, I used workflows in order to create the tasks.

 

Thanks

OK, so that confirms that there's not a mismatch between the view in Form Designer and the one you're using when looking at catalog tasks.  So my assumption is that you need to update your workflow to copy the variables from the RITM to the task.  This is done in the Catalog Task creation activity as shown below.  (Alternatively, if you always want to copy all variables, you could create a script in an insert BR on the sc_task table.)

ronprice_0-1680795387795.png

 

R-D
Tera Contributor

Hey @ronprice ,

Thanks for the guidance I was able to make it work. 👍