Try ERPNext Buy Support Partners Foundation

How to load a custom function on dialog box

hello ,

I want to load my custom function on onload on dialog box how to acheiev this

I think you do it like this:

frappe.prompt([
{‘fieldname’: ‘birth’, ‘fieldtype’: ‘Date’, ‘label’: ‘Birth Date’, ‘reqd’: 1} ],
function(values){
alert(“hi”);}
,‘Age verification’,‘Subscribe me’)

1 Like