Field value issue when field is disabled

Hi,
With the new updated version I have a problem in the comparison formulas that refer to the value of a disabled field
Before updating this formula worked perfectly
if ({TOTHG1} == “” and {THG1} !== “”) …
the TOTHG1 field is disabled but is calculated by a php function
With the updated version the comparison formula only works if TOTHG1 is enabled, but this way the user can change it by typing
Do you have a solution?

Does it work if the field is hidden and not disabled?

I haven’t tried, I don’t need it.
I think it’s a bug that needs fixing.
It has a form with many values calculated by php procedures and there are various comparison formulas that worked before.
But they should work because the problem is the reference to the scriptcase {namefield} syntax.
The value must be reported even if the field is disabled.
I also tried to disable the field from code before checking the value but it doesn’t work
sc_field_disabled(“TOTHG1=false”);
This only works if I save it as enabled in the editor


I found a solution
in the field editor you need to set “enabled= true”
In the load event of the form you need to insert
sc_field_disabled(“TOTHG1 = True”);
The result is that the field is disabled for typing, but can be updated by php procedures and is read as a value like {TOTHG1}


a bug check would be required