Does the date difference widget default as today's date?

  • Profile Image
    vitranod
    Asked on August 12, 2019 at 11:16 AM

    Does the date difference widget default as today's date? I am trying to set a conditional that if the dates are empty, pop up a text box. If they are filled (regardless of what the dates are), pop up a different one. However, it seems to be defaulting at always filled. Any advice for this? Thanks!

  • Profile Image
    JohnRex
    Answered on August 12, 2019 at 11:41 AM

    Hi @vitranod,

    By default, the Date Difference widget has blank values on it. To illustrate better, I created a demo form that shows a textbox if this widget is empty and vice-versa. Here's a link to it:

    https://form.jotform.com/92235007936962

    Also, could you provide us the link to the form so we could also check it?

  • Profile Image
    vitranod
    Answered on August 12, 2019 at 12:01 PM

    Hello,

    I don't have the original form set up anymore, as I tried a million things to fix it, and now have just ruined all the conditions! But, I created a quick little demo to show you what I am trying to do: https://form.jotform.com/92234861100144

    I would like no text to pop up originally (which is what happens in the above link). But then, once people select their start and end date, I want it to be if dates are less than one calendar week, warning text pops up. If dates exceed one calendar week, nothing pops up. I had a form calculation in there at first, but I think I don't need that if I am using the date difference widget?  Thank you!!

  • Profile Image
    JohnRex
    Answered on August 12, 2019 at 12:40 PM

    Hi @vitranod,

    You need to use a form calculation widget or a number field to capture the difference value, then use that field in your conditions. You can set it to hidden if you don't want your users to see it.

    I cloned your form and made a few changes to implement this suggestion. Here it is:

    https://form.jotform.com/92234660319961

    Please try that and let us know how it goes.

  • Profile Image
    vitranod
    Answered on August 12, 2019 at 12:48 PM

     This is exactly what I need, thank you so much!!