Managing the event of a check

At the moment when I’m inserting a new row I just wish to disable all the checks if I enable one that’s it on every record. It’s a check acting like a radio button only one can be checked in the whole child table.

I figured out that the two states of a check is '‘0’ and ‘1’ .
here is my script to manipulate the event:

frappe.ui.form.on(“myDoctype”, “myCheckField”, function(frm) {