I'm currently working on a custom field, where I manually add a checkbox to a file upload field. PDF Upload field
In onContentBeforeSave I want to read this checkbox to decide what to do with the file upload. I figured out to get the checkbox with
It works, but I thought it's a pretty ugly call.
Is there a nicer, better way to do this?