In a form (fancy) I change a data depending on another data:
jQuery("input[name=formula].FormElement").val(data[0].FORMULA);
But if I want to change the label based on a variable, is it possible?
sorry for my english, i'm using google translate
1 Answers
You can have this code inside afterShowForm event. e.g.
$opt["add_options"]["afterShowForm"] = 'function (form) { .... }';
To change label of field you can set, e.g. gender field:
jQuery("#tr_gender .CaptionTD").html("GENDER");
You can also use following as well. $opt[“edit_options”][“afterShowForm”]
Your Answer