¿Como deshabilitar opciones ya seleccionadas en reservas anteriores?

  • Juan
    Fecha de consulta 4 de octubre de 2024, 9:56

    Hola necesito ayuda para saber como puede hacer que cada vez que alguien ingrese su reserva, esta automáticamente deshabilite o bloquee esa opción

    Ejemplo: SI Sujeto 1 ingresa la siguiente reserva: Fecha 7-10-24 Horario 9:00 Sala: A

    Sujeto 2 no debería poder seleccionar esa misma fecha, mismo horario y misma sala, pero si pueda seleccionar misma fecha pero con distinto horario y/o misma o distinta sala.


    Espero se comprenda en lo que trato de solicitar ayuda.

    Quedo atento a comentarios,

    Saludos.

  • Deanne Jotform Support
    Fecha de respuesta 4 de octubre de 2024, 12:23

    Hi Juan,

    Thanks for reaching out to Jotform Support. Our Spanish Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Spanish, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, are you perhaps referring to this form? If so, I see that you're using the Appointment element. I understand you would want to be able to select the same date and time with different rooms but the appointment element is unable to track previous submissions. It can't check if there are already submissions with that date and time in the same room.

    As a workaround, you can instead add each room its own appointment field. So you should add 3 hidden appointment elements and only show them based on the room the form filler selects. Here's how to do it:

    1. Right-click on the appointment element and click on Hide.

    2. Right-click again and select Duplicate. Do this twice. There should now be 3 hidden appointment elements on your form.

    ¿Como deshabilitar opciones ya seleccionadas en reservas anteriores? Image 1 Screenshot 70

    3. In the orange navigation bar at the top of the page, click on Settings.

    4. On the left panel, click on Conditions and select Show/Hide Field.

    5. Now add in the conditions to show which appointment element based on which room is selected.

    6. Click on Save when you're done.

    ¿Como deshabilitar opciones ya seleccionadas en reservas anteriores? Image 2 Screenshot 81

    Here's a screenshot of the conditions:

    ¿Como deshabilitar opciones ya seleccionadas en reservas anteriores? Image 3 Screenshot 92¿Como deshabilitar opciones ya seleccionadas en reservas anteriores? Image 4 Screenshot 103¿Como deshabilitar opciones ya seleccionadas en reservas anteriores? Image 5 Screenshot 114

    Here's a sample result:

    ¿Como deshabilitar opciones ya seleccionadas en reservas anteriores? Image 6 Screenshot 125

    Here's also my demo form that you can clone and check out.

    Give it a try and let us know if you need any help.

  • juanmapudo
    Fecha de respuesta 4 de octubre de 2024, 15:34

    Thanks

    You save my weekend :)

    Bye,