Permission Depends On Custom Field Not Working

Hi, I am currently customizing v12 and I cannot seem to get this feature to work.
The warning states “Missing semicolon” but even with semicolon it is not working for me.

image

Can anyone help me ?

you can ignore this warning

Thanks. It’s working already