Service Now Catalog variables visibility only in task not on form

aagnihotri
Tera Contributor

How to make sure that the service catalog variables are visible only on the task but not on the form while a user is requesting a request ?  For eg I don't want the department part to come up while filling my form , but when I create my request task in that I can populate the department variable ?

6 REPLIES 6

Hi sounds helpful i did that as i only want on my task . But when i update my task and change it to complete state and try visiting my task once again the department field  gets disappeared automatically . I cannot see any information if i visit again . I also set the condition such as the person requesting my task should not be empty as every task is opened by someone still when i update or complete my request things dis appear . I also tried catalog UI scripts for on change , on submit but still its not working .

ramprasadk
Tera Contributor

@aagnihotri 

Variable keep Global. Onload Hide the Variable. By using Catalog client script through you can build logic hide and show.