Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

122
Vistas
Script about Restricting Days in WPForms

Im trying to select from day 8 since today, but can't get to this and time is coming to an end.

Maybe someone can point me in the right direction on what's wrong with my code?

<script>
 
      // Find out the current time
      var now = new Date();
 
      // Take that current time and round it up so we have an even number on the interval
      now.setHours( now.getHours() + Math.round(date.getMinutes()/90) );
        
      window.wpforms_999_8 = window.wpforms_999_8 || {};
      window.wpforms_999_8.timepicker = {
         forceRoundTime: true,
 
         // Disable any times that have passed already and return the new time selections
         minTime: now+8.toLocaleTimeString()
      };
      
      new customDatePicker();
} );
</script>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This worked like a charm:

function wpf_dev_limit_date_picker() {
?>
<script type="text/javascript">
    window.wpforms_3017_9 = window.wpforms_3017_9 || {};
    window.wpforms_3017_9.datepicker = {
        disableMobile: true,
        // Don't allow users to pick before 8th day from today
        minDate: new Date().fp_incr(+8),
        }
</script>
<?php
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda