How can I conditionally select an option in the Appointment Slots widget?

  • Profile Image
    ofd@archatl.com
    Asked on June 22, 2017 at 03:47 PM

    I currently am creating an event using the appointment widgets for different speakers at these sessions. There are 4 sessions total and each session has several speakers in English and Spanish. For sessions I, II, and III there is an English and Spanish speaker that will got for two hours, not one. So I want to use logic to make it so when they select the 2 hour speaker in session I or II, it automatically signs them up for that speaker in Session II or III as well, so they can't select another speaker for the next session. So if they select the 2 hour speaker in Session I, they are automatically selected for that speaker in session II, so they can't pick someone else for that session. But they can still pick from session III or IV. Does that make sense? If so, how can I do this? 

  • Profile Image
    Kevin_G
    Answered on June 22, 2017 at 05:00 PM

    As I can understand you need to conditionally select an option in the widget "Session II" based on the answer on the widget "Session I". 

    Example, if a user selects "E3 - Liturgy & Sacraments Part I (Fr. Joseph Shaute) (2 hrs.) (BT5)" on "Session I" you would like the option "E6 - Catholic Morality Part I (2 hrs.) (Dr. Chuck Betz) (IAT3)" to be automatically selected on the "Session II" field. Please, feel free to correct me if misunderstood your question. 

    Unfortunately, that is not possible to achieve using widgets since you cannot conditionally select an option in it. If you would like to perform such action then you would need to use the basic check box fields instead (Multiple Selections fields), this way you can conditionally check an option. 

    As an example, I used basic check boxes fields to display two options from your form, "Session I" and "Session II". I have added an extra field which default value is the one I need to be checked on "Session II" and that I will handle with conditions. 

    Then I take the value from the text box and insert it in the second check box based on the answer selected on "Session I".

    You could then set both check box fields to allow one entry only, which means that only one option can be checked. This will be found on the field settings, under the "Surveying" tab: 

    You may take a look  on my sample form here: https://form.jotformpro.com/71725955155968 

    Feel free to clone it

    Hope this helps. 

     

  • Profile Image
    ofd@archatl.com
    Answered on June 23, 2017 at 10:59 AM

    Thanks Kevin! 

    This was very helpful. I do have another question though: Can I add two "values" to the Default value for the text box? There is one 2 hour class in English in Session I and there is one 2 hour Class in Spanish in Session I. So I want either of those values to be an option if possible so if either if those is selected, then it automatically checks them off for that class in Session II as well. Right now it has just one class for the default value so I want to see if I can add another to that one text box. 

     

    Thanks. 

  • Profile Image
    Kevin_G
    Answered on June 23, 2017 at 11:52 AM

    It is possible to add an additional text to the default value of a short text entry field, but the conditions will not work. 

    If you need to check another option in the "Session II" field, then you will need to add a second short text entry field with the proper default value, do note that a second condition will need to be added too. 

    Please, give it a try and let us know if you have any question. 

  • Profile Image
    BDAVID
    Answered on June 23, 2017 at 04:35 PM

    Could you let us know what is the other form you are referring to? You can even try to clone it in your account to take the example of the way they have setup their conditions: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

  • Profile Image
    Kevin_G
    Answered on June 26, 2017 at 10:42 AM

    You could create your form in multiple pages, this guide will help you doing that:  How-to-Create-Multi-Page-Forms

    Now, you will need to set up conditions to redirect the user to the wanted page based on his answer, this guide will help you setting up such conditions: How-to-Skip-Pages-Using-Conditional-Logic

    Regarding why the conditions explained above do not work while the short text entry fields are hidden, I have just tested that and I can see it works fine even when the short text entry field  is hidden, you can see  it on my sample form: https://form.jotformpro.com/71725955155968 

    Please, make sure that your form does not clear hidden fields, this can be checked on the settings tab, form settings section and set the "Clear Hidden Fields" option to "Don't clear":

    Hope this helps. 

     

  • Profile Image
    ofd@archatl.com
    Answered on June 26, 2017 at 03:09 PM

    Okay, I think I got it. I'll have to ask the head of this event on Wednesday to confirm but I think I was able to figure it out using the Appointment Slots using the Conditional Logic with multiple pages. Thanks so much!