11var spinner = $ ( '#loader' ) ;
2- const scriptURLC = 'https://script.google.com/macros/s/AKfycbwFKUi-VRaGqRA7fbmcecVuSvdN-NzsFfiI8pc2oCriSJDkrmWok2P_dj4rdS5i0ELz /exec' ;
2+ const scriptURLC = 'https://script.google.com/macros/s/AKfycby1lcGAlChnpZsnnu1wqSQqyAPsVxTFLIEfoUZGDbrhRWAZGIeThItvJBphq_-P1ovB /exec' ;
33const serverlessForm = document . forms [ 'serverless-form' ] ;
44var timerOn = false ;
55var bgAnimate = false ;
@@ -8,6 +8,15 @@ var currentOrderID = 0000;
88var oldTech = "" ;
99var currentTech = "" ;
1010
11+ var orderID ;
12+ var lastName ;
13+ var tapeNum ;
14+ var initials ;
15+ var qcNotes ;
16+ var needsReview ;
17+ var notesOnly ;
18+ var billingNotes ;
19+
1120$ ( "#reset-btn" ) . click ( function ( ) {
1221 $ ( "#contactForm" ) . trigger ( "reset" ) ;
1322 $ ( ".pulled-detail" ) . html ( "" ) ;
@@ -161,14 +170,7 @@ $('#initials').change(function(){
161170//~~~~~~~~~~~~~~~~~~~~~~~~~Form Submission~~~~~~~~~~~~~~~~~~~~~~~~~
162171//-----------------------------------------------------------------
163172
164- var orderID ;
165- var lastName ;
166- var tapeNum ;
167- var initials ;
168- var qcNotes ;
169- var needsReview ;
170- var notesOnly ;
171- var billingNotes ;
173+
172174
173175function getFormDetails ( ) {
174176
@@ -177,8 +179,8 @@ function getFormDetails(){
177179 tapeNum = $ ( '#tape-num' ) . val ( ) ;
178180 initials = $ ( '#initials' ) . val ( ) ;
179181 qcNotes = $ ( '#qc-notes' ) . val ( ) ;
180- needsReview = $ ( '#needs-review' ) . val ( ) ;
181- notesOnly = $ ( '#notes-only' ) . val ( ) ;
182+ needsReview = $ ( '#needs-review' ) . is ( ":checked" ) ;
183+ notesOnly = $ ( '#notes-only' ) . is ( ":checked" ) ;
182184 billingNotes = $ ( '#billing-notes' ) . val ( ) ;
183185
184186 if ( currentOrderID != oldOrderID || currentTech != oldTech ) {
@@ -200,6 +202,8 @@ serverlessForm.addEventListener('submit', e => {
200202
201203 getFormDetails ( ) ;
202204
205+ console . log ( "Tape Number: " + tapeNum ) ;
206+
203207 Swal . fire ( {
204208 title : 'Ready to Log Tape <br/>' + orderID + '_' + lastName + '_ ' + tapeNum + '?' ,
205209 text : 'Has the file been reviewed? Ready to Log Tape?' ,
@@ -236,7 +240,7 @@ function logTape(e){
236240 getOrderDetails : false
237241 } ) ;
238242
239- console . log ( orderID ) ;
243+ console . log ( "Notes Only: " + notesOnly ) ;
240244
241245 var tapeProgress = "" ;
242246
0 commit comments