How to make channel field readonly if channel val - self_Service

Deepa12
Tera Contributor

Hi,

 

I have created attached UI policy to make the channel field readonly if the channel value is self_service.

i updated channel field value = self_Service into record producer(create incident) script , so that the user raise ticket into SP - the default value assigned as self_service into contact_type field.

 

i want to make field readonly into incident module, i tried UI policy. its working but this policy working into other incidents also(which is having different record producer).

 

how to give condition - this ui policy should only run into create incident record producer.

 

Deepa12_0-1689965617769.png

 

2 REPLIES 2

Riya Verma
Kilo Sage
Kilo Sage

Hi @Deepa12 ,

 

Hope you are doing great.

 

To achieve the desired functionality of making the "channel" field read-only in the incident module, follow below steps:

  1. Create a new UI Policy:

  2. Define the UI Policy details:

    • Table: Select the "Incident [incident]" table as the target table for this UI Policy.
    • Advanced: Leave this section empty for now.
  3. Define the Condition:

    • Under the "When to apply" section, click "Advanced" to define the condition.
    • Add a new condition to check if the record producer used is "Create Incident" with the channel value as "self_service."

 

current.sys_created_by == 'Create Incident' && current.channel == 'self_service'
​

 

  • Define ui Policy action to make channel read only
 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

Hi Riya,

 

Thanks for reply, sys created by value calling - incident requestor name so unable to fetch create incident tickets.

 

Deepa12_0-1690028245751.png