跳至內容
選單
此問題已被標幟
1 回覆
6178 瀏覽次數

Can somene help me get the data from a form field and modify it based on its value with javascript? Here is what I have so far, but I dont know how to get the form data into javascript

openerp.sale_custom = function(instance){

instance.sale_custom.SaleClass = instance.web.Class.extend({
    field_val: function(){  /*  pass data from the form into here?... */ },
});

var object = new instance.sale_custom.SaleClass();
object.field_val();

}

頭像
捨棄
最佳答案

Hi Eric,

           I want to send a field data to javascript for calculation. This should be done before clicking save button. Please guid me ..

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
7月 25
434
1
7月 25
5366
0
7月 25
932
0
6月 25
930
1
6月 25
1061