How to make variable editor on Case table read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 10:09 AM - edited 04-11-2023 10:27 AM
Evening All.
I have create a new UI Formatter called 'Case Variable Editor' for the Case [sn_customerservice_case] table to display the variables. I have selected 'Case Variable Editor' on the Configuring Case form and the variables appears when submitting a new case. but how do I get the Variable Editor to be read only. I have this working for the incident table via a UI policy with the following script
function onCondition() {
g_scratchpad.variable_names.forEach(function(v) {
var field_name = "variables." + v;
//g_form.setReadOnly(field_name, true);
g_form.setDisabled(field_name, true);
});
}
I have tried to copy the UI policy record and change this to the case table but the Run scripts is unticked and greyed out.
any ideas how I can get this Variable Editor to be read only?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 10:43 AM
You could control with a ACL or you could replicate this script in a client script instead of a ui policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 10:45 AM
Thank you Kristen for the reply I will try these and let you know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 07:01 AM
Hey @cstangoe , is this issue fixed?