Use this in your doctype client script
frm.meta.default_print_format = “Your Print Format Name here”;
you can write condition here or make it dynamic also
Use this in your doctype client script
frm.meta.default_print_format = “Your Print Format Name here”;
you can write condition here or make it dynamic also