Depends On in Dialog Scripts?

I’m building a custom dialog. I want to hide a field if the value of a checkbox (on the same dialog form) is checked.

It seems that the depends_on property is supported, but eval: seems to only allow reference of the actual document data (not the dialog form)