How to make variable editor on Case table read only

cstangoe
Mega Guru

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?

3 REPLIES 3

Kristen Ankeny
Kilo Sage

You could control with a ACL or you could replicate this script in a client script instead of a ui policy.

Thank you Kristen for the reply I will try these and let you know

Hey @cstangoe , is this issue fixed?

Thankyou