I am trying to dynamically change the value of a HTML field.
I wrote this code
cur_frm.cscript.ipc_class = function(doc, cdt, cdn){
//alert("trigger works!");
var label = "mytesting value goes here..."
cur_frm.set_value("general_remarks", label); // THIS WORKS! (Just for test)
cur_frm.set_value("general", label); // THIS DOESN'T WORK! WHY???
}
but the field ‘general’ doesn’t change its value. Here is the screenshot
It is supposed that the “General 0/2” title would have been changed to “mytesting value goes here…” as in the textbox next to it.
What’s the correct code to do that?