Help here with a script

I want to set my checkbox like a radio button. Can somebody help me to build correctly this Script or anyone has some useful Script?

here you are my attempt:
frappe.ui.form.on(“Mydoctype”, “refresh”, function(frm) {
frm.set_df_property(“myCheck”, “read_only”, frm.doc.__islocal ? 0 : 1);

I’m just trying to set as unenabled when any row in my child table is checked.