Frm.trigger() with parameters

Can we pass additional parameters to frm.tigger functions? I need to call the same function with just one different argument but I have to repeat the code. Is there a way to pass arguments to them?

1 Like

you got any solution?

No didn’t

@Khadija, you can use in place of frm.trigger to pass extra parameter.

For Example:, “populate_matching_invoices”);


Hello Khadija,

You can add the desired attribute to the form object for example

frappe.ui.form.on('DOCTYPE NAME', {
	refresh: function(frm) { = 'baz';
	load_fields_options: function (frm) {
		console.log(' ',;