From 654e1d70c6c3404d88aaf8b03e8a0a08e88da5c4 Mon Sep 17 00:00:00 2001 From: Josh North Date: Tue, 22 Jun 2021 12:34:02 -0400 Subject: [PATCH] vwf toggle required --- index.php | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/index.php b/index.php index 6c2be6d..e95c462 100644 --- a/index.php +++ b/index.php @@ -170,6 +170,7 @@ $form_data = filter_input_array(INPUT_POST, [ 'db_vendorinfo_checklistrequired' => (string)FILTER_SANITIZE_STRING, 'db_vendorinfo_routinework' => (string)FILTER_SANITIZE_STRING, 'db_vendorinfo_nonroutinework' => (string)FILTER_SANITIZE_STRING, + 'fd_routineornonroutine' => (int)FILTER_VALIDATE_INT, 'db_vendorinfo_coi' => (string)FILTER_SANITIZE_STRING, 'db_vendorinfo_worksummary' => (string)FILTER_SANITIZE_STRING, 'db_vendorinfo_equipmentsummary' => (string)FILTER_SANITIZE_STRING, @@ -219,11 +220,18 @@ $form_data = filter_input_array(INPUT_POST, [ setInfoVendorVisitInitial( $form_data['db_vendorinfo_id'], $form_data['db_vendorinfo_checklistrequired'], - $form_data['db_vendorinfo_routinework'], - $form_data['db_vendorinfo_nonroutinework'], + $fdroutinework, + $fdnonroutinework, $form_data['db_vendorinfo_coi'], $form_data['db_vendorinfo_worksummary'], $form_data['db_vendorinfo_equipmentsummary'] ); @@ -673,37 +681,25 @@ $form_data = filter_input_array(INPUT_POST, [ > + +
>
-
-
- - oninvalid="this.setCustomValidity('')" onchange="this.setCustomValidity('')" required/> - -
-
- - oninvalid="this.setCustomValidity('')" onchange="this.setCustomValidity('')" required/> - +
+
+
+
+ required/> + + required/> +
-