// if found check that its value match the condtionValue
if (conditioningField&&conditioningField.value===config.conditionValue){
// set this value with the forced value and disable the form field
this.updateStore_extra_form(config.forcedValue);
this.disabled=true;
}
}
},
checkDeactivatedValues(){
checkDeactivatedValues(){
if (this.$route.name.includes('type-signalement'))return;
// if changes occured, update extra_forms array with freshly checked active customForms
// if changes occured, update extra_forms array with freshly checked active customForms
letnewExtraForms=this.extra_forms.map((xForm)=>{// we use 'deactivate' instead of 'activate' because at initialization this property cannot be evaluated ...
letnewExtraForms=this.extra_forms.map((xForm)=>{// we use 'deactivate' instead of 'activate' because at initialization this property cannot be evaluated ...
constisDeactivated=!isXtraFormActive(this.extra_forms,xForm.conditional_field_config);// ... if the component is not created to set this property, thus no extra form would appear at all
constisDeactivated=!isXtraFormActive(this.extra_forms,xForm.conditional_field_config);// ... if the component is not created to set this property, thus no extra form would appear at all