Filter apointment slot widget

  • viajaamiles
    Asked on August 30, 2018 at 12:38 PM

    Hi

    Is it possible filter the appointment slot widget?

    If my widget have this configuration:

    Monday{10}
    Tuesday{2}
    Wednesday{5}
    Thursday{33}
    Friday{4}
    Saturday{unlimited}
    Sunday{10}

    And today is thursday (I have a today date in the form) can I show only the field thursady{33}?

    Tomorrow show: Friday{4}

    Nex tomorrow show: Saturday{unlimited}

  • Richie JotForm Support
    Replied on August 30, 2018 at 2:16 PM

    Unfortunately, we cannot directly edit the options inside the Appointment slot widget.

    We can however, add individually an appointment widget with the corresponding date.

    Sample:

    Filter apointment slot widget Image 1 Screenshot 70

    Then we add the Date picker to get the current date and use SHOW/HIDE conditions to show the corresponding date with the widget.

    First, we need to get the current date.

    We will use the Form calculation widget to get the String of the date.

    Click the Calculation settings or "..."

    Filter apointment slot widget Image 2 Screenshot 81

    Choose Math Functions and select DateString()

    Filter apointment slot widget Image 3 Screenshot 92

    This would convert the date into string.

    Filter apointment slot widget Image 4 Screenshot 103

    Then we add the SHOW condition.

    We get the value of the calculation and show the corresponding widget.

    Filter apointment slot widget Image 5 Screenshot 114

    Here is a sample screen cast:

    Filter apointment slot widget Image 6 Screenshot 125

    Here is my sample form:https://form.jotform.com/82415214043950

    Feel free to clone my form:https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Please give it a try and let us know if it fits your requirements.

    Thank you.