[SOLVED]ReadOnly in form_app doesn't work while insert

i set this parameter in my form_app

myField

LeftPAnel -> Edit Field -> ReadOnly

When i insert records, the field is editable, it only acts as readonly
when edit data from the record.

Is that behavior correct?

Thanks…

readonly1.jpg

This is normal behavior for an application form type. You can set readonly behavior using this code at onScriptInit event: sc_field_readonly({fieldname}, ‘on’);

Readonly is mainly used on keyfields AFAIK. I useually set the checkbox ‘label’ in the fieldproperties. This will cause the field to display as a label and not as a field.

Hello,

Yes this is the default behavior.

regards,
Bernhard Bernsmann