Dear All,
How can I listen to the change event or even hide/show a field of a dialog created on the client side. In the example below I would like to manipulate the “sps” field (hide, clear, set to different value, etc…) based on selection from the first field “codec”.
var d = new frappe.ui.Dialog({
fields: [
{
'fieldname': 'codec',
'fieldtype': 'Select',
'label': 'Codec',
'options': 'G.729\nG.711\nOPUS',
},
{
'fieldname': 'sps',
'fieldtype': 'Data',
'label': 'Samples per Second',
}
]
});
d.show();