Disable and enable Buttons based on a database entry

Are you sure the field name in the collection is fieldName ?