Como alterar o horário final do campo nos dias de sexta-feira?

  • alveslucas
    Perguntado em 15 de março de 2024 às 15:57

    Olá, bom dia.

    Hoje geramos relatórios de segunda à sexta-feira, onde segunda à quinta, o horário inicial é fixado em 07:00h e horário final em 17:00h.

    Entretanto, às sextas, trabalhamos até às 16h e ao gerar o formulário o valor do campo (como está fixo) sempre sai às 17:00h.

    Qual regra eu poderia criar nesse caso? Há alguma solução?

  • Jefferson Jotform Support
    Respondido em 15 de março de 2024 às 18:20

    Hi Lucas,

    Thanks for reaching out to Jotform Support. Unfortunately, our Portugese Support agents are busy helping other Jotform users at the moment. 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 Portugese, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Can you share the form URL that you are referring to? We have a guide about Where to Find Your Form URL that you can check out.

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.

  • alveslucas
    Respondido em 16 de março de 2024 às 09:55

    Hi! I will try with Google translate, ok?

    Today we generate reports from Monday to Friday, where Monday to Thursday, the start time is set at 7:00 am and the end time at 5:00 pm.

    However, on Fridays, we work until 4pm and when generating the form, the value of the field (as it is fixed) always comes out with the value of 5pm.

    I need to create a rule or condition that when the day of the week is equal to Friday, the end time is equal to 4:00 pm.

    What rule could I create in this case? Is there any solution?


    this is the link of the creator formulary: https://www.jotform.com/build/211296257186057


    and here is the link to the report that users used to generate daily reports: https://www.jotform.com/211296257186057

  • Harshad_P Jotform Support
    Respondido em 16 de março de 2024 às 12:36

    Hi Lucas,

    Thanks for reaching out to Jotform Support. Yes, you can set up conditions based on the days of the week, and then add the time as well and then select your outcome. Let me show you how:

    1. In Form Builder, click on Setting in the orange bar at the top of the screen.
    2. Select Conditions in the left panel.
    3. Select the type of the condition you want to use.
    4. Check out the screencast below on how to set it up.
    Como alterar o horário final do campo nos dias de sexta feira? Image 1 Screenshot 20
    That it, now you can select your outcome in the condition.

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

  • alveslucas
    Respondido em 17 de março de 2024 às 19:22

    Hi Harshad! How are you?

    Thanks for the support, but it didn't work.

    See: https://gifyu.com/image/SUt9a

    Como alterar o horário final do campo nos dias de sexta feira? Image 1 Screenshot 20

  • Jeric Jotform Support
    Respondido em 17 de março de 2024 às 21:45

    Hi Lucas,

    Thanks for reaching back to us. I have another workaround and see if this will work for you. You can add another End Time field which has 16:00 as default value in addition to an End Time with 17:00 value. We will conditionally show which based on day of the week the date user has selected. This is the demo form I created:

    Como alterar o horário final do campo nos dias de sexta feira? Image 1 Screenshot 40
    As you can see, there are two time fields with 17:00 and 16:00 default value. Next, we will create a show/hide conditional logic:

    1. Click on Settings
    2. Select Conditions
    3. Click on Show/Hide FieldComo alterar o horário final do campo nos dias de sexta feira? Image 2 Screenshot 51
    4. Create the condition. In this example, if date is equal to day- Friday, we will hide End time 1 and show End time 2
    5. Click on SaveComo alterar o horário final do campo nos dias de sexta feira? Image 3 Screenshot 62

    Here's the demo form that you can test.

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

  • alveslucas
    Respondido em 18 de março de 2024 às 08:07

    Initially I had designed a second field for final positioning, but I realized that this would mess up my Excel data exports.

    This option doesn't work.

    Anyway, I appreciate the support.