- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2019 12:49 AM
Hello,
I am stuck on a client script or rule, where I have to make one field read only until other is filled. I am confused because onLoad() function should be read only and then I have to have onChange() so when I change the value the field should, so what is the approach? Can anybody help me please and share an example code how to approach this? Thank you!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2019 12:54 AM
Why don´t you use a UI Policy?
Example: You have to fields "Business Service" and "Assignment Group". As long as the Business Service is empty, the Assignment Group should be readonly.
You can use a UI Policy with condition ~ "Business Service ISEMPTY" -> UI Policy Action: Assignment Group = readonly.
Of course this could also be handled with client scripts. onChange script for field "Business Service" -> if field is empty -> g_from.setReadonly('assignment_group', true);...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2019 04:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2019 04:23 AM
Great Job Ashish.