- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 06:25 AM
I have a requirement to make read-only field to editable. In my form there is 2 True/False fields - Follow 1 & Follow 2. Here Follow 2 is Read Only. In my requirement if I check Follow 1 then Follow 2 should become editable. I have tried with UI policy action and script also - g_form.setReadOnly('follow1', false) but it doesn't work.
Please assist me on this @Ankur Bawiskar @Community Alums
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 07:05 AM
Hello @Balaji Munusamy ,
You have to write two UI Policies, first one work onLoad ( without any condition ) which set the Follow2 as readyOnly.
Second one when Follow1 is checked ( or True ) , then "with condition Follow1 is true" set the Follow2 editable.
result ( Follow2 is read only )
Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 03:41 AM
Okay, @AshishKM already provided the UI solution .
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 07:05 AM
Hello @Balaji Munusamy ,
You have to write two UI Policies, first one work onLoad ( without any condition ) which set the Follow2 as readyOnly.
Second one when Follow1 is checked ( or True ) , then "with condition Follow1 is true" set the Follow2 editable.
result ( Follow2 is read only )
Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 11:42 PM
Thanks @AshishKM
It works!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 07:26 AM
Try with 2 UI Policies, as given in my previous reply. Its working on PDI
What I did :
- create two checkbox field "Follow1" and "Follow2"
- create a first UI Policy to make Follow2 readonly [ no condition ]
- create a second UI Policy to make Follow2 editable when Follow1 is checked/true.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution