CASE WEB 23 NON PREP PORCELAIN VENEERS TOOTH WHITENING SMILE MAKEOVER
Before
After
add_filter('gform_confirmation', function($confirmation, $form, $entry) { // Get Gravity Forms values $email = rgar($entry, '2'); $phone = rgar($entry, '3'); if (!$email && !$phone) { return $confirmation; } // Inject safely encoded values into JS $email_js = json_encode($email); $phone_js = json_encode($phone); $script = " "; return $confirmation . $script; }, 10, 3);