How do I create a successful condition using the Day Countdown widget?

  • StrawberryDesi
    Asked on December 28, 2017 at 5:54 PM

    My Proof Form uses the Day Countdown widget.  I would like to create a condition that causes the submit button to show only when the countdown clock reaches ZERO time left.  How can I do that?


    Thank you.


    Henry

  • jonathan
    Replied on December 28, 2017 at 7:53 PM

    Hi Henry,

    The only way I found to make this work is to have a required field and use conditions involving the required field to show the Submit button.

    Since the auto submit will not happen if the required field validation is false, you can use it to trigger the Show/Hide condition rule for the Submit button.


  • StrawberryDesi
    Replied on December 28, 2017 at 9:52 PM

    Johnathan, I don't understand what you mean.  Please explain further...



    Henry

  • Ardian_L
    Replied on December 29, 2017 at 4:53 AM

    Unfortunately you can't add a condition to that widget. But there is a workaround for that. We can add a Date field and mark it as hidden. And we can specify a condition so, when the date is equal to a specific date to show the submit button.

    Please check the demo form I have created in the url below:

    https://form.jotform.com/73621856766973

    Please clone it first, because the date field it's hidden and you can see only when you edit the form, and check also the condition I have added.

    Please follow the instructions on how to clone an existing form.

    Let us know if you have any other question.

  • StrawberryDesi
    Replied on December 29, 2017 at 8:52 AM

    What in the world are you saying?


    First, your work-around doesn't work!  The submit button does not show in the form that you have created in your example.

    Second, you suggest that I should clone what you have created.  But, there is no way for me to clone it since you left me no way to access the form that you created.

    Third, you suggest that I create a date field and then create a condition that will (apparently) use that date field to trigger the disappearance of the Submit button.  That SOUNDS good.  But, how can the date field be compared to the current date to trigger that event???


    Please further explain your work-around.  And, if you are going to give leave an example, please leave a link that will allow me to actually clone it.


    Thank you.


    Henry

  • Ardian_L
    Replied on December 29, 2017 at 9:41 AM

    I am sorry if you were confused. 

    That's exactly why the submit button doesn't show, because I have created a Date field which is hidden and can't be seen in the form. Then in conditional logic I have specified a date when the submit button to be visible.

    Please refer to the video below.

    1514558463HiddenDate Screenshot 10

    Also I was able to clone the form with a free plan user. So please try again to clone the form and analyze the modification I have made. 

    Then you can set the precise date that correspondents with the countdown timer.

    Please let us know if you have any other question. 

  • StrawberryDesi
    Replied on December 29, 2017 at 9:55 AM

    Ok.  I understand perfectly, now.  I do have another question:  Can this work-around work with the date/time widget?  I need to specify a date AND A TIME after which the submit button will not show.  How can I make that work?

  • Mike_G JotForm Support
    Replied on December 29, 2017 at 2:52 PM

    To my understanding, you would like to set a specific date and time range where the submit button in your form is shown, is that correct?

    For example, you would only like the form to be available for submissions between December 30, 2017, 9:00 AM to December 31, 2017, 10:00 PM. Between these dates, the submit on the form should be shown to your respondents. But before and after those dates, the submit button should be hidden.

    Unfortunately, (in my opinion) the Date/Time Single widget will not be suitable for your requirements since the conditional states available for that widget is different than of a regular Date field.

    Actually, the form has a feature that you can set to disable it on a specific date — How-to-Limit-Submissions-in-a-Form

    But if you want your users to know that the form is already not available without them attempting to submit it first, you can try the solution I have below that I believe would best suit your requirements

    What I suggest you do is use a regular date field with time set to enabled (both set to Current)

    1514573075t13 42 Screenshot 10

    and a Form Calculation widget that will have the numerical value of that date field.

    1514573558t13 51 Screenshot 21

    After that, you need to get the numerical value of the start date (when your form should show the submit button) and the end date (when your form should hide the submit button)

    To do that, load your form and change the numeric value of the date field to get the value from the Form Calculation widget manually. 

    1514574899t14 04 Screenshot 32

    In my example, I would like to only show the submit button starting December 30, 2017, 9:00 AM until December 31, 2017, 09:59 PM.

    But before that, make sure that the number of decimal places of the Form Calculation widget is set to at least 4 to make it more accurate.

    1514573884t13 56 Screenshot 43

    After you get the numeric value of your start date and end date, create the condition as shown below.

    1514575866t14 29 01 Screenshot 54

    You can hide both the date field and the Form Calculation widget on the form.

    Here's the sample form I have created — https://form.jotform.com/73624133743959

    I hope this helps. If you have other questions or concerns, please feel free to contact us again anytime.

  • StrawberryDesi
    Replied on December 29, 2017 at 7:50 PM

    Ok, Mike G.  That worked.  Thank you!


    Henry

  • Mike_G JotForm Support
    Replied on December 29, 2017 at 11:15 PM

    You're most welcome! We are glad that it worked for you. If you have other questions or concerns, please do not hesitate to contact us again anytime.