Realizar validaciones en tiempo real basado en los envíos del formulario.

  • Profile Image
    Recursos_recursoshumanos688
    Asked on November 18, 2021 at 04:02 PM

    Buen día, tengo un formulario en construcción que será para la actualización de trabajadores, necesito que no puedan ingresar el número general del trabajo en el campo que creamos para número personal, ya vimos lo de envíos únicos pero el problema es que esto bloquea el envío hasta finalizar el formulario y el mismo es muy largo por que es una actualización general de datos, mi pregunta es si de alguna forma al escribir el campo de teléfono personal el numero del trabajo ya no se pudiera digitar en ese campo y de igual manera los números personales ya ingresados y que mostrará una alerta de que ese número ya fue ingresado.

  • Profile Image
    Kevin_G
    Answered on November 18, 2021 at 05:20 PM

    Me temo que no hay manera de realizar este tipo de validaciones en los campos, voy a abrir una solicitud para esta función, aunque no podemos dar un tiempo estimado para su disponibilidad le mantendremos informado a través de este ticket.


  • Profile Image
    Recursos_recursoshumanos688
    Answered on November 24, 2021 at 12:18 PM

    Gracias, ampliando mi consulta, no existe un CSS que pueda restringir un campo númerico a un rango de números determinados?

  • Profile Image
    Hanne_L
    Answered on November 24, 2021 at 01:15 PM

    @Recursos_recursoshumanos688

    Thank you for following up. I apologize for replying in English.

    If you want to restrict entry in a field, you may want to look into Input Masking. This feature can set certain restrictions for input in certain fields. Please see this guide for further details: Getting Started with the Basics of Input Masking.

    Please let me know if this can be helpful or if I misunderstood you.

  • Profile Image
    Recursos_recursoshumanos688
    Answered on November 24, 2021 at 01:39 PM
    Thank you for answering, unfortunately the input mask is not useful for what we need, as I mentioned in the header of the query, what we need is to restrict the entry of a certain number or to be able to type only the numbers within a specific range For example, in my country the ranges of authorized personal numbers are from 30000000 to 60000000; then we want the user who fills in the form to only be able to enter numbers within this range or, failing that, to be able to block numbers within the range 20000000 and 29999999 that are from companies, since we are looking for them to provide us with a personal mobile number.


  • Profile Image
    Hanne_L
    Answered on November 24, 2021 at 03:22 PM

    @Recursos_recursoshumanos688

    I apologize for the misunderstanding. Thank you for taking the time to explain.

    While waiting for the feature request, perhaps the Limit Entry option for the number field could be helpful? Then you can at least deny entries with numbers that fall outside of the 30000000-60000000.

    1637785000_619e9da8afd89_

    1637785020_619e9dbc99d50_numbers.gif

    While it does not offer all the functions you need, maybe it can be helpful.