So I’m trying to change a value based on current user.

When page is loaded the user’s “File State” is set to 0.
When I click a button and the file uploader is not empty:
I change the “File State” to 1.
When I click a button and the file uploader is empty:
I change the “File State” to -1.
My issue is that everything works except for when the user clicks the button and it is empty. I have a group that I change the color of to test this and it doesn’t change at all. It does however change when the user clicks submit and the file uploader is not empty. Any reason for this?


