Hi,
In the Zoho CRM Deals module, I have a field, let's call it "Result".
This field is filled automatically using Client Script's onChange Field Event, when the field C is changed, even before saving the record. My code is as follows (simplified for the example):
var A = ZDK.Page.getField('A').getValue();
var B = ZDK.Page.getField('B').getValue();
var C = ZDK.Page.getField('C').getValue();
ZDK.Page.getField('Result').setValue(A * B / C);
Now I also want the Result field to be disabled, so no user input. But when I do that (by clicking Set Permissions and selecting Read Only for all Profiles), the auto calculation doesn't work. I think basically setValue function is not working for the disabled inputs.
How can I achieve an auto calculation for a disabled field?