How to make few variables Editable on task form.

Pratiksha KC
Tera Guru

The customer submits the request and it create one catalog tasks on RITM. On task form we have two section under variable Editors. 

I wants make them partially Editable. Means Half variable should read- only and half should be Editable for fulfiller. Below is screenshot for reference. Marked variables should be Editable for fulfillers on task. 

PratikshaKC_0-1752651434661.png

 

I have tried all kinds of combinations on the permissions for the variable and test it the variables are still read only. Also wrote a client script but something is overriding it so when the task is created the variables are still read only. OOB Client script- 'Variable Editor Readonly' is also deactivated. Still not working. 

 

3 REPLIES 3

Pranesh072
Mega Sage
Mega Sage

Check your Catalog UI policies. 

 

https://www.servicenow.com/docs/bundle/yokohama-servicenow-platform/page/product/service-catalog-man...

Applies on a Catalog Item view Select the check box to apply the UI policy to catalog items within the order screen. Available in the requester view.
Applies on Catalog Tasks Select the check box to apply the UI policy on a Catalog Task form. Available in the fulfiller view. See VEditor.
Applies on Requested Items Select the check box to apply the UI policy on a Requested Item form. Available in the fulfiller view. See VEditor.
Applies on the Target Record Select the check box to support the catalog UI policy on a record created for task-extended tables via record producers. See Default variable editor.

Ehab Pilloor
Mega Sage

Hi @Pratiksha KC,

 

My understanding is that you want to add resolver inputs on the task form only. If that is the case, then make those resolver inputs Global false from dictionary.

Set a UI policy that Applies on task to make those variables visible (if it doesnt work, try checking applies to catalog view and RITMs, and setting those variables as not visible).

Add them in Task via Flow designer or Workflow, you will find option to add variables in the last part of action.

 

Regards,

Ehab Pilloor

   

Chaitanya ILCR
Mega Patron

Hi @Pratiksha KC ,

 

check if there any UI policies or clients scripts as shared by @Ehab Pilloor and @Ehab Pilloor 

 

also check if there is any write role added to the variable and remove those roles if any (remove those only on the variables which you want to make editable)

ChaitanyaILCR_0-1752653228328.png

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya