Team 3 (Channel Partner Reporting (Neb Mitra))
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s
Details
This commit is contained in:
parent
5e8c2a452b
commit
8253ebff8c
|
|
@ -337,7 +337,20 @@
|
||||||
$('#report-form').on('submit', function(event){
|
$('#report-form').on('submit', function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let mobile = $('#field-phone_no_staff').val().trim();
|
let mobile = $('#field-phone_no_staff').val().trim();
|
||||||
$('#report-form').append('<input type="hidden" name="'+ $('#field-input_name').val() +'_pob_units" value="'+ $("#field-input_given_count").val() +'">')
|
var rawName = $('#field-input_name').val() || '';
|
||||||
|
|
||||||
|
var slugifiedName = rawName
|
||||||
|
.toString()
|
||||||
|
.toLowerCase() // lowercase
|
||||||
|
.trim() // remove blank spaces
|
||||||
|
.replace(/\s+/g, '_') // blank spaces - '_'
|
||||||
|
.replace(/[^\w\-]+/g, '') // remove (special characters)
|
||||||
|
.replace(/\_\_+/g, '_'); // '_'
|
||||||
|
|
||||||
|
|
||||||
|
$('#report-form').append('<input type="hidden" name="' + slugifiedName + '_pob_units" value="' + $("#field-input_given_count").val() + '">');
|
||||||
|
|
||||||
|
//$('#report-form').append('<input type="hidden" name="'+ $('#field-input_name').val() +'_pob_units" value="'+ $("#field-input_given_count").val() +'">')
|
||||||
if (!/^[6-9]\d{9}$/.test(mobile)) {
|
if (!/^[6-9]\d{9}$/.test(mobile)) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue