How to Add Instruction and Grouped Variables on Catalog Task Form (Variables Section)

Pratiksha KC
Tera Guru

1. How to add instruction to variables section on the Catalog Task
I would like to see the below instructions to the fulfiller (in color Hex=#ae0055):
Information to Service Desk – this task is only intended to build the workflow
Ensure that you answer the questions below and once done, please update the state of this task accordingly:
In case this request must be continued -> close this task in CLOSE COMPLETE state to continue the workflow.
In case this request must be cancelled / rejected -> close this task in CLOSE INCOMPLETE state to cancel the workflow and provide the reason to Requester in Additional comments field.

PratikshaKC_0-1751913830463.png

 

2. Below variables from the form, still in Variables section on Catalog Task I would like to 2 sections(This variables are not on catalog item) – first one where I can select the number of approvals and who they should be generated to, and second section where I can select tasks needed to fulfill the request.

PratikshaKC_1-1751913868968.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Pratiksha KC 

for the 1st requirement you can use HTML type variable and add instructions there

hide this variable on catalog form and RITM using UI policy and show only on catalog task

didn't understand the 2nd requirement clearly

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

7 REPLIES 7

@Pratiksha KC 

you need to create a variable set, add variables into it.

Hide the variables within this variable set during submission and show only on RITM/SC Task form

where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

But how can we make that variables editable on task form in variable editor section? 

@Pratiksha KC 

are those coming as readonly in variable editor for the agents working on sc_task?

I tested with itil user and for that user the variable editor is editable out of the box

1) Ensure this client script on sc_task is active=false

AnkurBawiskar_0-1751979771090.png

 

2) ensure no UI policy or catalog client script is making them readonly on sc_task form

 

Testing result with itil user

AnkurBawiskar_1-1751979847932.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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