Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6207 มุมมอง

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 ..

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 25
443
1
ก.ค. 25
5403
0
ก.ค. 25
965
0
มิ.ย. 25
956
1
มิ.ย. 25
1079