You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`_onClickButton: function () {
var self = this;
var deret_value = $('input[name="deret_value"]:checked').val();
var mesin_produksi_id = $('input[name="mesin_produksi_id"]:checked').val();
var putus_lusi = $('input[data-field="putus_lusi"]').is(":checked");
var putus_pakan = $('input[data-field="putus_pakan"]').is(":checked");
var bendera_merah = $('input[data-field="bendera_merah"]').is(":checked");
var ambrol = $('input[data-field="ambrol"]').is(":checked");
var dedel = $('input[data-field="dedel"]').is(":checked");
var hb = $('input[data-field="hb"]').is(":checked");
var naik_beam = $('input[data-field="naik_beam"]').is(":checked");
var oh = $('input[data-field="oh"]').is(":checked");
var preventif = $('input[data-field="preventif"]').is(":checked");
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
the checbox value always return false after i checked the check box.
this is the xml code
<div class="col-md-6"> <group name="mesin" string="Pilih Line Mesin"> <field name="deret_value" widget="radio" options="{'horizontal' : True}" class="radio-line" id="radio-line"/> </group> </div> <div class="col-md-8"> <div class="radio-mesin"> <group name="layout_mesin" string="Layout Mesin"> <field name="mesin_produksi_id" domain="[('deret', '=', deret_value)]" options="{'horizontal': True}" widget="radio" class="radio-mesin" id="radio-mesin"/> </group> </div> </div> <div class="col-md-8"> <group name="kerusakkan" string="Pilih Kerusakkan"> <field name="putus_lusi" class="custom_checkbox" /> <field name="putus_pakan" class="custom_checkbox"/> <field name="bendera_merah" class="custom_checkbox"/> <field name="ambrol" class="custom_checkbox"/> <field name="dedel" class="custom_checkbox"/> </group> <group> <field name="hb" class="custom_checkbox"/> <field name="naik_beam" class="custom_checkbox"/> <field name="oh" class="custom_checkbox"/> <field name="preventif" class="custom_checkbox"/> </group> <group> <field name="lain_lain" string="Keterangan/Lain Lain" placeholder="Isi Keterangan Disini" style="text-align:center;" class="keterangan"/> </group>
javascript code
`_onClickButton: function () {
var self = this;
var deret_value = $('input[name="deret_value"]:checked').val();
var mesin_produksi_id = $('input[name="mesin_produksi_id"]:checked').val();
var putus_lusi = $('input[data-field="putus_lusi"]').is(":checked");
var putus_pakan = $('input[data-field="putus_pakan"]').is(":checked");
var bendera_merah = $('input[data-field="bendera_merah"]').is(":checked");
var ambrol = $('input[data-field="ambrol"]').is(":checked");
var dedel = $('input[data-field="dedel"]').is(":checked");
var hb = $('input[data-field="hb"]').is(":checked");
var naik_beam = $('input[data-field="naik_beam"]').is(":checked");
var oh = $('input[data-field="oh"]').is(":checked");
var preventif = $('input[data-field="preventif"]').is(":checked");
},
`
Beta Was this translation helpful? Give feedback.
All reactions