How to change the value of a field based on the time selected?

  • werickson
    Asked on December 20, 2018 at 12:50 AM

    If the value of time in a date time field is between 8-5 I want "normal hours" auto selected in the next question, else "after hours" would be selected - how can I do that?

  • Kiran Support Team Lead
    Replied on December 20, 2018 at 6:55 AM

    I have checked your JotForm and see that you are using 'DateTime Single' widget on the form. I don't think it is possible to setup a condition only to check the time from the value returned from the widget since it is combined with the widget. You may consider using the Date and Time fields separately from the Form elements so that you the time value can be checked separately in a condition. Please allow me sometime to check on this and get back to you with a demo form.

    Thanks!

     
  • Kiran Support Team Lead
    Replied on December 23, 2018 at 3:16 AM

    I am sorry for the delay in getting back to you. I have tried checking a few things using the time field and the conditions can be set using 24 hour format on the form to achieve your requirement.

    154555297223122018 131245 13 Screenshot 10

    I have set the following conditions on the test below to select the respective option based on the time field.

    154555276723122018 131237 12 Screenshot 21

    Please check the form below and give it a try on your form.

    https://form.jotform.com/83545022404953

    Please get back to us if you need any further assistance. We will be happy to help.