- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2018 12:24 PM
I have field A and when I select the value of 'Yes', it will make another field B as Editable else the field B will be disabled. It works fine through UI policy.
Now I have field C and on changing value in Field C, Field A will be cleared. If suppose the previously selected value in Field A is 'Yes', then Field B also will be editable. On clearing the value in Field A, the expected behavior is, UI policy should be executed so that field B will be disabled. But now field B will remain editable
Should I be writing logic again my Field C client script to take care of the original logic? I can do it but field C already have 3 choices and have plenty of logic in it. Including this as well over there will make things complicated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2018 02:22 PM
HI Please find the below
Ui Policy:
Onchange Client Script:
Initially When loadin the form:
When test 1 is yes test 2 is ediatbale:
when test3 is selected as yes, Test 1 is None and Test 2 is readonly.
Please let me know if this helps you.
mark Correct if this helps you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2018 02:05 PM
Is field A a Yes/No field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2018 02:08 PM
Yes Field A is YES/NO
Current design is UI policy operates on Field A and it makes Field B editable or not editable based on YES/No selection. In fact if it is yes, it will be editable and mandatory and reverse condition will be making it non-editable and non-mandatory.
Client script runs on Field C which clears Field A. On clearing Field A(to None) if the Client script triggers i m good but its not triggering thats the problem here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2018 02:18 PM
HI kailash,
I tried in my Demo Instance and its working,
Can you paste your onchange client Script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2018 02:22 PM
HI Please find the below
Ui Policy:
Onchange Client Script:
Initially When loadin the form:
When test 1 is yes test 2 is ediatbale:
when test3 is selected as yes, Test 1 is None and Test 2 is readonly.
Please let me know if this helps you.
mark Correct if this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2018 04:37 PM
explorenow ursnani sanjivmeher
Here is my instance
https://dev38254.service-now.com/
User : admin
password : Sumathi#11
Table Menu : UI Policy Validation
It has 3 fields.. Field A, Field B and Field C
When Field A is selected, Field B will be made Editable
When Field C is selected, Field A will be cleared. Expectation is Field B will be made not editable but its not the case. The example which you have tried in your local instance is for Catalog item and this is normal table.
I have looped Sanjiv as well.