List or Library Control Validator


How do I require a record to be created in a child table (List or Library Control) if the Parent form status value = 'Completed'?

Thank you.

Dear @ParAvion,
Hmm, you could add a form validator to check both List or Library and Status value:

    name: 'MyCustomValidator',
    error: 'Add a record to a child table',
    validate: function(value) {
        if (fd.control('SPDataTable1').widget.dataItems().length < 1
        && fd.field('Status').value == 'Completed')
            return false;

        return true;