Hello, I'm trying behaviours to create some custom fields changing their values / hidden property based on each other values and I'm stuck with some problems.
One of those problems is that my server side scripts are not triggered when the form first loads, for example I created a checkbox field with an options and I put
def summ = getFieldById('summary')
summ.setFormValue("I'm ok!")as a server-side script attached to the field;
documentation says about the server side scripts
Our server-side script, when written, will be called the first time this field appears, and any time the user changes it in the dialog.
But when the form first load (Create button) that code does not triggers, while it does (correctly) when I check/uncheck the option on the chechbox.
Am I missing something or doing something wrong? How can I implement correctly that requirement?