Unable to edit the Appointment element

  • Profile Image
    sclh
    Asked on June 15, 2020 at 07:04 PM

    I am using the Appointments feature on one of my forms. 

    I have found that the only way to "cancel" an appointment is by editing the submission, deselecting the appointment, and submitting it again.

    In order to do this, the Appointment field must not be required, otherwise the form will not let me submit with an empty appointment field.

    However, making the appointment field not required also allows customers to submit a form with a date chosen but without choosing a time. 

    How can this catch-22 be fixed?

     

  • Profile Image
    roneet
    Answered on June 15, 2020 at 10:45 PM

    You can write a condition to unrequire the appointment field while editing it.

    1. Add Get Form Page URL

    https://www.jotform.com/widgets/get-form-page-url

    2. Add condition if Get Form Page URL contains edit then unrequire the appointment field.

    Guide: https://www.jotform.com/help/546-How-to-Set-a-Field-as-Required-or-Non-Required

    or in spite of editing the submissions, you could delete the entire submission to clear the time slots.

    Guide: https://www.jotform.com/help/377-How-to-Delete-Form-Submission-Data

    Let us know how it goes.

    Thanks.

  • Profile Image
    sclh
    Answered on June 16, 2020 at 11:14 AM

    I will add a condition to the form.

    I tried to delete submission data when originally testing the form, but it didn't clear the time slot when deleted. I was left with a filled time slot and no way of clearing it out without a submission to edit.

  • Profile Image
    roneet
    Answered on June 16, 2020 at 12:26 PM

    Are you still experiencing the issue that when you try to delete the submission the time slots do not clear up? I am unable to replicate this in my form.

    Could you please test the form once more?

    You may also add the condition that I have suggested in my previous post.

    Please give it a try and let us know how it goes.

    Thanks.

  • Profile Image
    sclh
    Answered on June 16, 2020 at 12:53 PM

    I set up the condition and it is now working as intended.