How to make channel field readonly if channel val - self_Service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 12:00 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 12:20 PM
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:
Create a new UI Policy:
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.
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
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2023 05:19 AM
Hi Riya,
Thanks for reply, sys created by value calling - incident requestor name so unable to fetch create incident tickets.