Select an appointment in the Appointment field through our API.

  • james01.jdg
    Asked on January 27, 2021 at 6:08 PM

    Hello,

    I'm looking to use the API n order to add a submission to my form.


    I'm testing the process using postman but am having difficulties and keep getting response code 400.

    Specifically, my form contains an appointment widget. Is is possible to enter a new submission with data for the appointment widget? And will the appointment widget update on the form to show that the time taken by the API call is no longer available to book?

  • John Support Team Lead
    Replied on January 27, 2021 at 11:21 PM

    You would need to have an API key with full access to the account. Please refer to this guide on how-to-create-a-jotform-api-key.

    You may refer to our Jotform API documentation here for details: https://api.jotform.com/docs/#post-form-id-submissions 

    Regarding your question about adding submissions to the Appointment field using the API, allow me some time to test it on my end and get back to you here with my findings.

  • John Support Team Lead
    Replied on January 29, 2021 at 1:56 PM

    Thank you for waiting! So after several tests, I still can't add or book a date into an appointment field using API. I'm not sure if this is possible for the widget, so I would suggest consulting with our API Team via api@jotform.com for further assistance on this specific issue.

    Meantime, using POST command on cURL works for fields other than the appointment widget:

    1611946307 60145943ee4e3  Screenshot 10

    Here's the command I used:

    1611946435 601459c31beb0  Screenshot 21

  • james01.jdg
    Replied on February 2, 2021 at 11:49 AM

    Thanks for your response. I'm really hoping that it is possible via the API and have emailed that address but still waiting on a reply, would you be able to nudge them for me?

    If it's not possible via API, is there any way to set up the appointment widget to allow multiple times to be selected in one form?

  • Amin_N
    Replied on February 2, 2021 at 3:19 PM

    Please rest assured, I have successfully raised a feature request to the API team to enable selecting an appointment in the Appointment field through our API. However, please note that we can not provide you with when or if this will be implemented. If there is any update, we will inform you via this support ticket.   

    As per the last inquiry, I'm afraid the only way to do so is having multiple Appointment fields on your form.

    Your understanding is most appreciated.

  • james01.jdg
    Replied on February 21, 2021 at 1:44 PM

    Hi again, I've emailed the API email a couple of times no success. I'm just wondering if this is something being actively looked at by jotform? Being able to book times via the API would be the last thing we need to confirm that we can use JotForm on a bigger scale.

    Is it possible that this will be implemented within the next two months?

  • Eduardo JotForm Support
    Replied on February 21, 2021 at 6:39 PM

    Unfortunately, we don't have an update on this issue yet. This feature request is opened, and assigned to our Maintenance team. Our developers will evaluate and implement it if accepted.

    I'm afraid we can't affirm if this will be implemented in a near future.

    Thank you for your understanding.








  • james01.jdg
    Replied on March 22, 2021 at 11:39 AM

    Hello, has there been an update on this? Have the developers accepted the request at least?

    I know a lot of people would love to have this function for covid!
    Thanks

  • John Support Team Lead
    Replied on March 22, 2021 at 2:14 PM

    I understand that this feature is necessary for the workflow you're trying to achieve. However, the request did not get that much priority.

    Please keep in mind that there's no assurance whether this will be implemented. It will highly depend on the viability of the feature, the number of similar requests we get, along with the workload of our Developers. But as soon as this gets implemented in the future, you will surely be notified here.