Como mostrar o campo com base em um período de tempo?

  • welenson
    Perguntado em 10 de junho de 2024 às 09:08

    Seria possivel mostrar um campo oculto, caso a hora seja maior que 08:00 e menor que 12:00?


  • Lorevie Jotform Support
    Respondido em 10 de junho de 2024 às 11:16

    Hi Welenson,

    Thanks for reaching out to Jotform Support. Our Portuguese 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 Portuguese, 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, I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    Thanks for your patience, we appreciate it.

  • Lorevie Jotform Support
    Respondido em 10 de junho de 2024 às 11:57

    Hi Welenson.

    I understand that you want to show a hidden field based on a certain time frame. Let me walk you through this:

    First, let's add and set up the time element:

    1. In the Form Builder, click on the Add Form Element on the left side of the page and select Time. Como mostrar o campo com base em um período de tempo? Image 1 Screenshot 50
    2. Click on the Gear icon of the added element.
    3. From the Options tab, set the Time Format to 24 Hour and the Default Time to Current.Como mostrar o campo com base em um período de tempo? Image 2 Screenshot 61

    Next, let's set up the

    Show/Hide Field condition.

    1. In the Form Builder, click on Settings on the orange navigation bar at the top of the page.
    2. Select Conditions on the left side of the page, and choose Show/Hide Field.Como mostrar o campo com base em um período de tempo? Image 3 Screenshot 72
    3. Set up the condition like the screenshot below.
    4. Click on the Save button at the bottom of the page.Como mostrar o campo com base em um período de tempo? Image 4 Screenshot 83

    For the “DO” statement, select the fields that you want to show conditionally.

    You can also check out our guide about How to Enable or Disable a Form Based on Time Using Conditions.

    Give it a try and let us know how it goes.