I have below code in my frappe page
let status_select = this.page.add_field({
label: frappe._('Status'),
fieldtype: 'Select',
fieldname: 'Status',
reqd: 0,
options: "\nInstalled\nOperational\nInstalled But Not Operational\nIn
Progress\nNeed Installation\nReplaced\nNeed Replacement",
change() {
console.log(status_select.get_value())
}
})
i want to change its options dynamically , how can we do that?