Checkboxes checked based upon field in dataset

Hello. I am creating an author dashboard for a client who is creating a co-authored book series. The dashboard includes all the author info and a section for tasks to complete (ie. upload their chapter, upload their headshot). I would like to use a checkbox field next the task for a quick status. If the task is completed then the field would be true and the checkbox checked, if not the field would be false and the checkbox unchecked. The fields in question are not Boolean but are text, or image, or document fields.

My question is, how do I set the checkbox to TRUE, and therefore checked, if the corresponding field is not NULL?

Thanks in advance!

Hi,
How do you set those tasks ?
If you are using a form you can use Data Hooks .
Here is a sample of how It Should look:

export function myCollection_beforeInsert(item, context) { 
    let hookContext = context; // see below 
    // some change to the received item 
    item.taskCompleted = false; // instead of null
    return item; 
    }

Good luck!
Roi