If i select "read only" in a calculated field the calculation is not done.
I mean that i i choose "read only" only to make the filed non editable from users but i cant get the calulation when its enable.
Is this normal behavior ?
Thank you again all.
Read only field
Re: Read only field
Yes ... currently a read-only field can't be set from the $data array in hooks. Please note that if you set it as editable, any value entered to it by users won't be applied anyway because the calculation would overwrite it. However, if you still want to set the field as read-only, you should perform the calculation in hooks using an SQL update query rather than modifying $data array.

- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
- Need personalized consulting on your specific app and customizations? Book an online call with me here.