|
@@ -173,6 +173,10 @@ parentSegment.find('#frm-add-{{$label}}')
|
|
|
if(form.find('[name="isRemoved"][value="0"]').is(':checked')) {
|
|
|
form.find('[name="additionReasonCategory"]').attr('required', 'required');
|
|
|
}
|
|
|
+ else if(form.find('[name="isRemoved"][value="1"]').is(':checked')) {
|
|
|
+ form.find('[name="additionReasonCategory"]').removeAttr('required');
|
|
|
+ form.find('[name="additionReasonCategory"][value="ON_INTAKE"]').prop('checked', true); // make ON_INTAKE if in-active
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// require removalReasonCategory if not active
|