configuration changes for dependent field

This commit is contained in:
rahul shukla 2019-07-18 12:51:22 +05:30
parent 27d6e8894c
commit f61554c5a6
1 changed files with 16 additions and 8 deletions

View File

@ -422,8 +422,8 @@
data: function() {
return {
isVisible: false,
isRequire: false,
isVisible: false,
}
},
@ -443,19 +443,27 @@
depandValue = 0;
}
$("select.control").change(function() {
if (dependentElement.value == depandValue) {
this_this.isVisible = true;
} else {
this_this.isVisible = false;
}
$(document).ready(function(){
$(document).on("change", "select.control", function() {
if (this_this.depand == this.name) {
if (this_this.value == this.value) {
this_this.isVisible = true;
} else {
this_this.isVisible = false;
}
}
})
});
if (dependentElement.value == depandValue) {
if (dependentElement && dependentElement.value == depandValue) {
this_this.isVisible = true;
} else {
this_this.isVisible = false;
}
if (this_this.result) {
this_this.isVisible = true;
}
}
});
</script>