frappe.ui.form.ControlButton = frappe.ui.form.ControlData.extend({ can_write() { // should be always true in case of button return true; }, make_input: function() { var me = this; const btn_type = this.df.primary ? 'btn-primary': 'btn-default'; this.$input = $(`