Setting Button URL from Child Doc

Hello all!

I trying to build a Child DocType that will allow me to enter a title and URL and then show a table of buttons on the parent that each open a dialog box that displays the webpage associated with the URL. I’ve gotten it to work statically, but I’m struggling to understand how to get the field values from the child that the button is a part of and not from the parent.

Thank you for any help or advice! I’m still a bit new to JS and Frappe so please feel free to point out any other best practices/resources.

//Client Script under Parent DocType
frappe.ui.form.on("Child DocType Name",{
	button_fieldname: function(frm, cdt, cdn){
        var d = new frappe.ui.Dialog({
            title: /*Want to get this from child field*/,
            'fields': [
                {'fieldname': 'ht', 'fieldtype': 'HTML'},
        });$wrapper.html("<iframe src=' /*Want to get this from child field*/ ' ></iframe>");;