I have set custom code in my view settings for fields in a table, but it appears if the value is an integer and empty the custom code is not called?
My view page seems to get out of alignment when there is no value for a field, so I was trying to use custom view code to set the value as such:
if ($value == '') {
$value = '--';
}
This works fine for fields which are strings and empty, but not integers. For my integer fields I tested "$value=999;" - and in this case records with an empty value showed nothing, and any which had value set showed "999". Is the custom code not called when the field is an integer and not set?
I just want to show a "--" or something for empty fields to maintain view alignment, and need to show the field rather than hide to be clear its not defined. Thanks.
Jim.