need help Javascript
Hi, I need help to implement into code bellow, ok: function for "ok" button to write data from input field into text field and other; function for reset button to reset or write 0 into same text field.
var CustomDialog = {
description: { name: "Some Name", elements: [
{ name: "Some text", type: "static_text", },
{ type: "cluster", elements: [
{ name: "Some text", type: "static_text", },
] },
{ type: "cluster", align_children: "align_row", elements: [
{ name: "Some text", type: "static_text", },
{ item_id: "usnm", type: "edit_text", char_width: 4, },
]},
{ type: "ok_cancel_other",
ok_name: "Ok",
cancel_name: "Cancel",
other_name: "Reset" },
] }
};
app.execDialog(CustomDialog);
