Can we write client script/UI Policy for Record producer?

Tamil5
Tera Expert

Hi All,

I have a record producer page where end user can create Change Request without any high level roles.

Created the record producer page exactly same like real CR form ( I meant the number of fields).

We have some custom fields that should be visible only based on the Category & Subcategory selection.

But currently it is visible all the time, and I don't know how to make it in Record Producer form.

Can anyone please advice.

Thanks

Prici

1 ACCEPTED SOLUTION

Hi Pricilla,



Your UI policies/client script written on Incident/Change table will not reflect in Service catalog record producer. You would need to go to Catalog UI Policies / Catalog client script and rewrite the script for respectice record producer catalog item.


View solution in original post

5 REPLIES 5

Manoj Kumar16
Giga Guru

Yes you can write a UI policy for that.



In the UI policy you need to give a condtion if category is xyz then   set the UI action- visiblity false for the particular field which you want to hide.



You can refer this document-


http://wiki.servicenow.com/index.php?title=Service_Catalog_UI_Policy#gsc.tab=0


Hi Manoj,



Thanks for the quick response.



Are you sure it will work on the Record Producer form, I don't think so.



Why because, I already have a UI Policy which will make my custom field as Mandatory based on the Subcategory selection on a CR form.



It is working fine in the Change form but not in Record Producer page.



So it seems the UI policy/ Client script which we are writing will not be applicable on the Record Producer page.



Also I need to know can we create a custom button on the Record Producer form ? (like Request for Approval)



Please advice.



Thanks


Prici


Hi Pricilla,



Your UI policies/client script written on Incident/Change table will not reflect in Service catalog record producer. You would need to go to Catalog UI Policies / Catalog client script and rewrite the script for respectice record producer catalog item.


Hi Dilip Kumar,



You are awesome its working.



Also I need help on the below queries as well,


1. Can I create a custom button in my record producer form ?


Currently it contains Cancel & Submit, I need "Request For Approval" button, can I make it ?



2.   Is it possible to modify the Cancel & Submit button places ?


Right now the buttons are not looking good, Cancel button is in the Left end & Submit button is in the Right end.


Sometime users has to scroll the page horizontally to see the Submit button.



Please advice



Thanks


Prici