Zenova new form changes
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m43s Details

This commit is contained in:
Tanuja Pansare 2026-09-02 10:19:27 +05:30
parent 293eae1222
commit 128c100ac7
1 changed files with 89 additions and 89 deletions

View File

@ -83,7 +83,7 @@
@case('dropdown')
<select class="form-control" {!!($question->code
== 'contact_id')?'data-toggle="select2"':'' !!} id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
<option value=""> -- Select -- </option>
<option value=""> -- DeSelect -- </option>
@foreach ($question->options as $option)
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type == 'doctor' )
<option value="{{ $option->value }}"
@ -341,119 +341,119 @@ $('#field-select_brand').on('change', function () {
$('#field-select_brand').trigger('change');
});
$('#field-sankalp_lead_received_penvial').on('change', function () {
let value = $(this).val();
// $('#field-sankalp_lead_received_penvial').on('change', function () {
// let value = $(this).val();
// Pehle existing hidden input hata do
$('input[name="sankalp_recieved"]').remove();
// // Pehle existing hidden input hata do
// $('input[name="sankalp_recieved"]').remove();
// Sirf Yes pe value bhejo
if (value === 'Yes') {
$('#report-form').append(
'<input type="hidden" name="sankalp_recieved" value="1">'
);
}
});
// // Sirf Yes pe value bhejo
// if (value === 'Yes') {
// $('#report-form').append(
// '<input type="hidden" name="sankalp_recieved" value="1">'
// );
// }
// });
$('#field-sankalp_lead_enrolled_penvial').on('change', function () {
let value = $(this).val();
// $('#field-sankalp_lead_enrolled_penvial').on('change', function () {
// let value = $(this).val();
// Pehle existing hidden input hata do
$('input[name="sankalp_enrolled"]').remove();
// // Pehle existing hidden input hata do
// $('input[name="sankalp_enrolled"]').remove();
// Sirf Yes pe value bhejo
if (value === 'Yes') {
$('#report-form').append(
'<input type="hidden" name="sankalp_enrolled" value="1">'
);
}
});
// // Sirf Yes pe value bhejo
// if (value === 'Yes') {
// $('#report-form').append(
// '<input type="hidden" name="sankalp_enrolled" value="1">'
// );
// }
// });
$('#field-pmos_dr').on('change', function () {
let value = $(this).val();
// $('#field-pmos_dr').on('change', function () {
// let value = $(this).val();
// Pehle existing hidden input hata do
$('input[name="pmos_dr"]').remove();
// // Pehle existing hidden input hata do
// $('input[name="pmos_dr"]').remove();
// Sirf Yes pe value bhejo
if (value === 'Yes') {
$('#report-form').append(
'<input type="hidden" name="pmos_dr" value="1">'
);
}
});
// // Sirf Yes pe value bhejo
// if (value === 'Yes') {
// $('#report-form').append(
// '<input type="hidden" name="pmos_dr" value="1">'
// );
// }
// });
$('#field-qbs_dr').on('change', function () {
let value = $(this).val();
// $('#field-qbs_dr').on('change', function () {
// let value = $(this).val();
// Pehle existing hidden input hata do
$('input[name="qbs_dr"]').remove();
// // Pehle existing hidden input hata do
// $('input[name="qbs_dr"]').remove();
// Sirf Yes pe value bhejo
if (value === 'Yes') {
$('#report-form').append(
'<input type="hidden" name="qbs_dr" value="1">'
);
}
});
// // Sirf Yes pe value bhejo
// if (value === 'Yes') {
// $('#report-form').append(
// '<input type="hidden" name="qbs_dr" value="1">'
// );
// }
// });
$('#field-adboard_dr').on('change', function () {
let value = $(this).val();
// $('#field-adboard_dr').on('change', function () {
// let value = $(this).val();
// Pehle existing hidden input hata do
$('input[name="adboard_dr"]').remove();
// // Pehle existing hidden input hata do
// $('input[name="adboard_dr"]').remove();
// Sirf Yes pe value bhejo
if (value === 'Yes') {
$('#report-form').append(
'<input type="hidden" name="adboard_dr" value="1">'
);
}
});
// // Sirf Yes pe value bhejo
// if (value === 'Yes') {
// $('#report-form').append(
// '<input type="hidden" name="adboard_dr" value="1">'
// );
// }
// });
$('#field-fb_live_dr').on('change', function () {
let value = $(this).val();
// $('#field-fb_live_dr').on('change', function () {
// let value = $(this).val();
// Pehle existing hidden input hata do
$('input[name="fb_live_dr"]').remove();
// // Pehle existing hidden input hata do
// $('input[name="fb_live_dr"]').remove();
// Sirf Yes pe value bhejo
if (value === 'Yes') {
$('#report-form').append(
'<input type="hidden" name="fb_live_dr" value="1">'
);
}
});
// // Sirf Yes pe value bhejo
// if (value === 'Yes') {
// $('#report-form').append(
// '<input type="hidden" name="fb_live_dr" value="1">'
// );
// }
// });
$('#field-ecme_dr').on('change', function () {
let value = $(this).val();
// $('#field-ecme_dr').on('change', function () {
// let value = $(this).val();
// Pehle existing hidden input hata do
$('input[name="ecme_dr"]').remove();
// // Pehle existing hidden input hata do
// $('input[name="ecme_dr"]').remove();
// Sirf Yes pe value bhejo
if (value === 'Yes') {
$('#report-form').append(
'<input type="hidden" name="ecme_dr" value="1">'
);
}
});
// // Sirf Yes pe value bhejo
// if (value === 'Yes') {
// $('#report-form').append(
// '<input type="hidden" name="ecme_dr" value="1">'
// );
// }
// });
$('#field-rtm_dr').on('change', function () {
let value = $(this).val();
// $('#field-rtm_dr').on('change', function () {
// let value = $(this).val();
// Pehle existing hidden input hata do
$('input[name="rtm_dr"]').remove();
// // Pehle existing hidden input hata do
// $('input[name="rtm_dr"]').remove();
// Sirf Yes pe value bhejo
if (value === 'Yes') {
$('#report-form').append(
'<input type="hidden" name="rtm_dr" value="1">'
);
}
});
// // Sirf Yes pe value bhejo
// if (value === 'Yes') {
// $('#report-form').append(
// '<input type="hidden" name="rtm_dr" value="1">'
// );
// }
// });