Is there a way to prevent the same start and end time?

  • dgeehot
    Asked on February 25, 2019 at 5:51 PM

    Is there a way to have the starting and ending time on the same card?

  • jherwin
    Replied on February 25, 2019 at 7:17 PM

    Do you mean, prevent the same start and end time?

    Add two form calculations that will get the value of your time field and then make a condition "if time 1 equals time 2" then disable submit. Form calculation (time 1) needs to be displayed so the condition will work.

    Demo Form: https://form.jotform.com/90557049984976

    Please give it a try and let us know if it meets your needs.

  • dgeehot
    Replied on February 26, 2019 at 11:43 AM
    I just tried the link that you sent me and it doesn't appear to be working I'm not sure what I'm doing wrong.
    Like your idea, is any way that an error message could pop at the time fields are the same or if the end time is greater that start time
    Daniel Gladstone
    eml: dgeehot@gmail.com
    Phn: 501-269-3030
    ...
  • Girish JotForm Support
    Replied on February 26, 2019 at 3:09 PM

    I have reviewed the form link provided by my colleague and I have made some modification as per my understanding of your requirement.

    One thing to note is, we cannot pop the error message in the time field, as this feature is not yet enabled in Card field question form.

    As an alternative:

    1. The condition which you have mentioned can only be applied if we use 2 different time fields. Only then, the form can differentiate the time difference. 

    2. If you want to have a starting and ending time on the same card, then we can add a text field, instead of a pop-up message which will appear when the time field condition is not satisfied. 

    You can check the form link below:

    Form Link: https://form.jotform.com/90565517242962


    Please review the form and clone it, if required.

    Let us know the update.

  • dgeehot
    Replied on February 26, 2019 at 4:43 PM
    Thank you for working on this for me I just tried using your sample form and set it so that my starting time & ending time were the same and I got the message “not the same” – I then hit the previous arrow and corrected the ending time to an hour different and then click next it showed duration was one hour hit next and got the start and time should not be the same error message again not sure how to get around that. Please advise thank you
    Daniel Gladstone
    eml: dgeehot@gmail.com
    Phn: 501-269-3030
    ...
  • jherwin
    Replied on February 26, 2019 at 6:03 PM

    Sorry for the confusion. It looks like the workaround I gave you is not possible because it gets the same value of the time field and comparing the same value so it will only show "Start and end time should not be the same!" message.

    The solution for your requirement is to split start time and end time.
    1551222159starttime Screenshot 10

    See my demo form here: https://form.jotform.com/90557049984976

    You can clone the form to know how it was done: How to Clone an Existing Form from a URL.

    Give it a try and let us know if it meets your needs.

  • dgeehot
    Replied on February 26, 2019 at 6:43 PM
    I tried it with you having two cards one could start time and one for the end time and I put 1 PM on both of them and did not get an error message also is there a way to have the end time populate with the same number of minutes at the start time
    Daniel Gladstone - Dgeehot@gmail.com
    ...
  • jherwin
    Replied on February 26, 2019 at 8:02 PM

    That's strange. I see the message if I choose the same time. Can you please try clearing your browser cache or try to open the form with another browser?

    Also is there a way to have the end time populate with the same number of minutes at the start time

    Unfortunately, we can't get the value of minutes field and populate the end time with it because the hours and time is one field only.

  • dgeehot
    Replied on February 26, 2019 at 9:43 PM
    That is what I figured would be the response but just want to make sure.
    Did you have an opportunity to look at: : https://form.jotform.com/90557049984976
    And see why after I correct the time issue I’m still getting the error message
    Thanks
    Daniel Gladstone
    eml: dgeehot@gmail.com
    Phn: 501-269-3030
    ...
  • jherwin
    Replied on February 26, 2019 at 10:54 PM

    The form you sent is my demo form and it works on my end. Please check my screencast below.1551239462demo Screenshot 10

    Please clear your browser cache and cookies before opening my demo form: https://form.jotform.com/90557049984976. You can also send us a screencast of the issue at your end. Just upload it to your google drive and give us a shared/public link so we can see the issue you are referring to.

  • dgeehot
    Replied on February 27, 2019 at 8:43 AM
    I am using Google Chrome to go to your demo form - https://form.jotform.com/90557049984976 - I cleared my browser cache and cookies as you suggested:
    I went to the form and started entering data:
    Then:
    It should have pop up the duration/hour card but instead it gave me this:
    I tried it again – cleared my browser history and this time I entered a corrected start and end time with a hour difference and
    Got the same results.
    Daniel Gladstone - Dgeehot@gmail.com
    ...
  • Mike_G JotForm Support
    Replied on February 27, 2019 at 12:00 PM

    I can only assume that you are trying to show us a screenshot in your last reply. However, for some reason, the screenshot was not posted together with your reply.

    To include a screenshot in your response, please follow the instructions in this guide — How-to-Post-Screenshots-to-Our-Support-Forum

    Also, I went ahead and tested the demo form created by my colleague and I didn't encounter any issues with the workaround applied to the form. I was also using Google Chrome.

    1551286723t11 53 35 Screenshot 10

    Please know that the warning message saying that the start and end time should not be the same will only appear after the submit button is clicked.

  • dgeehot
    Replied on February 27, 2019 at 4:43 PM
    It might be working on your page but not on ours – our url is: https://www.jotform.com/90387670419162
    I am not sure how to correct issue and make it work
    The way is should work is:
    1. Is this for a new event? Yes or NO
    • If Yes – continue on to the next question
    • If No – display a message to contact me and stop
    2. Has location been confirmed? Yes or No
    • If Yes – continue on to the next question
    • If No – display a message to contact me and stop
    3. Event Name –
    4. How often
    5. Dates for the event – I wish I could do a error check to make sure end date was before start
    6. Times of the event - – I wish I could do a error check to make sure that if total = 0.00 – it would not go further
    7. Location
    8. Event description
    9. # expected
    10. Refreshment
    11. AV Equipment
    12. Meredith email desc
    13. Date to submit - I wish I could do a error check to make sure that the submission date is before or equal to event date
    14. Coordinators name
    15. Email
    16. Phone
    17. Review
    How can I get this to work properly? Or do I have to look for another service. I have sent over 30 inquiries and still
    This form is not behaving as it should. I tried to place a call but it appears you do not have a phone listed. I am not sure
    How best to address this and get it to work properly
    Please…. Please…. HELP me....
    Daniel Gladstone - Dgeehot@gmail.com
    ...
  • jherwin
    Replied on February 27, 2019 at 5:57 PM

    We will be happy to help you with this. But first, could you please allow us to make changes to your form so we can do your needs?

    Looking forward to your response.

  • Daniel Gladstone
    Replied on February 28, 2019 at 10:31 AM

    yes, please make the necessary changes to my form that is in my library and let me know the new form # and I will import back into my library


  • dgeehot
    Replied on February 28, 2019 at 10:43 AM
    Yes, please make these changes
    Sent from Mail for Windows 10
    ...
  • Girish JotForm Support
    Replied on February 28, 2019 at 1:42 PM

    I am sorry for the inconvenience caused to you.

    I have cloned your form and made the required changes as per your requirements. I have not directly made changes to your form because I replaced many Widgets with form elements.

    I have made several changes in the Input Elements so that you can have a required output as per the need. Please find the below changes:

    1. For your First and Second conditions, I have made a separate text field which will be triggered when your customer selects 'No' in either of the first two fields. 

    2. Changed Date Picker Widget with the Date Picket Element and separated the Start Date and End date. Now you can compare the End date with the Start date.

    3. Similar changes are done in Time Picker Element. I have made two separate Time entry Fields. Now you can compare the End Time with the Start Time. If your customer enters the Same time, the form will jump to the End page.

    I have applied many different conditions to satisfy the requirements, you can change/edit those if you still need to add more comparisons.

    Please find the below form link, you can clone it if you want:

    Link: https://form.jotform.me/90584743510457

    Let me know if you ok with the changes made.

  • dgeehot
    Replied on February 28, 2019 at 2:43 PM
    Thank you so much for working on this. I just looked at the clone –
    Link: https://form.jotform.me/90584743510457
    I noticed a couple of things when I ran it:
    1. Is this for a new event? An I answered NO, it took me to a message screen(which is what should happen), and when I clicked next , I get another message ‘ Start time is equal end time ‘ and then review submit. It really needs to stop. And when I click on previous to slide 20 -> 19…
    2. It seems to be happening the same when you answer NO to Location been confirmed.
    3. I entered the start date as 2/28/2019 and the end date as 2/27/2019, it did not pop up an error message or prevent me from going further when I hit the next key. However it did display an error message when I tried to use the same times. When I hit the previous key, it did kick me back to the end time to correct which is cool
    Daniel Gladstone – 501-269-3030 – dgeehot@gmail.com
    ...
  • Mike_G JotForm Support
    Replied on February 28, 2019 at 4:03 PM

    I would like to apologize. I can only assume that the issue in your form described in this thread has already been fixed. Otherwise, please feel free to let us know and give us more details.

  • dgeehot
    Replied on February 28, 2019 at 5:43 PM
    I am not sure who is working on what, the last response was that “GerardW” sent me a link to
    Look at, and there were some issues, and not sure if he is still working on it or is somebody else
    Thanks – Daniel Gladstone – dgeehot@gmail.com – 501-269-3030
    Sent from Mail for Windows 10
    ...
  • jherwin
    Replied on February 28, 2019 at 7:09 PM

    Hey Daniel - The fields or page after the question "Is this for a new event" should be hidden so when the user's click previous button it will show again the question "Is this for a new event".

    I entered the start date as 2/28/2019 and the end date as 2/27/2019, it did not pop up an error message or prevent me from going further when I hit the next key

    I'm not sure if we can achieve this because the start date and end time are one field only so we can't use it on conditional logic. However, I have a workaround in my mind so I will make some tests to try if it will work.

    I will work on this later and I will also make the changes directly to your form. I will update you via this thread.

    Thank you for your patience.

  • dgeehot
    Replied on February 28, 2019 at 7:43 PM
    Thank you – the person that was working on this earlier thought they could be combined but if you need to separate start and end date into two card to make it work, that works for me… appreciate the effort you all are doing on this. If I can get it working properly my boss has no issue getting a paid account but I need to show it working
    Daniel Gladstone - Dgeehot@gmail.com
    ...
  • jherwin
    Replied on March 1, 2019 at 3:09 AM

    Hey Daniel - I'm done with your form. Can you please check and see if it meet your requirements?

    Your Form: https://form.jotform.com/90387670419162

    Thanks.