Team 3 Form changes View Channel Partner Input Reporting Form (Neb 2)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 38s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 38s
Details
This commit is contained in:
parent
2478a7006a
commit
1daac8f9df
|
|
@ -57,8 +57,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<input type="hidden" name="SAFARI_TROLLEY_BAG_METRIC" id="safari_trolley_bag_metric" value="0">
|
|
||||||
<input type="hidden" name="SAVLON_KIT_METRIC" id="savlon_kit_metric" value="0">
|
|
||||||
|
|
||||||
@foreach($questions as $question)
|
@foreach($questions as $question)
|
||||||
<div class="col-md-12 mb-2">
|
<div class="col-md-12 mb-2">
|
||||||
|
|
@ -284,7 +283,7 @@
|
||||||
|
|
||||||
|
|
||||||
// Input Name - Safari Trolley Bag / Savlon Kit
|
// Input Name - Safari Trolley Bag / Savlon Kit
|
||||||
$('#field-input_name').on('change', function () {
|
/*$('#field-input_name').on('change', function () {
|
||||||
|
|
||||||
var selectedInput = $(this).val();
|
var selectedInput = $(this).val();
|
||||||
|
|
||||||
|
|
@ -307,8 +306,36 @@ $('#field-input_name').on('change', function () {
|
||||||
'Safari:', $('input[name="SAFARI_TROLLEY_BAG_METRIC"]').val(),
|
'Safari:', $('input[name="SAFARI_TROLLEY_BAG_METRIC"]').val(),
|
||||||
'Savlon:', $('input[name="SAVLON_KIT_METRIC"]').val()
|
'Savlon:', $('input[name="SAVLON_KIT_METRIC"]').val()
|
||||||
);
|
);
|
||||||
|
});*/
|
||||||
|
|
||||||
|
|
||||||
|
function slugify(value) {
|
||||||
|
return value
|
||||||
|
.toString()
|
||||||
|
.trim()
|
||||||
|
.toLowerCase()
|
||||||
|
.replace(/\s+/g, '_') // spaces -> -
|
||||||
|
.replace(/[^\w-]+/g, '') // special characters remove
|
||||||
|
.replace(/--+/g, '-') // multiple - -> single -
|
||||||
|
.replace(/^-+|-+$/g, ''); // starting/ending - remove
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#field-input_name').on('change', function () {
|
||||||
|
|
||||||
|
$('#report-form input.dynamic-hidden').remove();
|
||||||
|
|
||||||
|
let inputName = slugify($(this).val());
|
||||||
|
|
||||||
|
$('#report-form').append(
|
||||||
|
'<input type="hidden" class="dynamic-hidden" name="' + inputName +'" value="1">'
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// bag_distribution_photo_jpgjpegpng_max_upto_10_mb
|
// bag_distribution_photo_jpgjpegpng_max_upto_10_mb
|
||||||
$('#field-bag_distribution_photo_jpgjpegpng_max_upto_10_mb').on('change', function () {
|
$('#field-bag_distribution_photo_jpgjpegpng_max_upto_10_mb').on('change', function () {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue