I add ‘readonly’ to a field in local json. The sync not triggered. So every time the field group update from panel, ‘readonly’ will delete from json. I had to add it again…
What should I do to keep the readonly?
There is not “readonly” setting when creating field in the admin. Even if you sync this field this setting will be ignored when you edit the field group. The only way to permanently add readonly to a field is by doing so in an acf/prepeare_field filter https://www.advancedcustomfields.com/resources/acf-prepare_field/.