• Resolved andizzo

    (@andizzo)


    Is it possible to load certain groups for hours (8:00-9:00 OR 8:00-8:15, 8:15-8:30, etc) depending on what days of the week are selected within the calendar?

    I have a chiropractor who only does certain hours certain days of the week and other hours on other days, so that’s why I’m asking.

    Thanks so much!

    Andy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    If I understand correctly, the hiding/showing of groups depends on the value of 2 fields?

    It’s possible but it can grow quit complex pretty fast. With Conditional fields Pro it will be possible to write regular expressions so you could write it all in one line. For now, however, you will need to srite something like this:

    if day = monday then show monday-group
    if day = tuesday then show tuesday-group

    if monday-hours = 8:00-9:00 then show monday-hours-group
    if monday-hours = 8:00-8:15 then show monday-hours-group

    Your form should then look like this:

    
    [select day "monday" "tuesday" ...]
    
    [group monday-group]
      [select monday-hours "8:00-9:00" "..."]
      [group monday-hours-group]
        [text field-monday-1]
        [text field-monday-2]
      [/group]
    [/group]
    [group tuesday-group]
      [select tuesday-hours "8:00-10:00" "..."]
      [group tuesday-hours-group]
        [text field-monday-1]
        [text field-monday-2]
      [/group]
    [/group]
    ...
    

    Hope this makes sense? If not , I probably misunderstood the question. Could you set up a form for me as close to what you want as possible and give me the link?

    Thread Starter andizzo

    (@andizzo)

    Hey Jules,

    Thanks for the quick reply! I think we’re on the same page, however what I’m looking to use instead of “Monday”, “Tuesday” etc is the actual calendar feature of contact form 7 such as [date Date placeholder “Date”]. I’m wondering if on the calendar say they choose December 14, 2017 which happens to be a Thursday can I then show the Thursday hours in a drop down to choose from?

    I guess what I’m looking for is for the calendar itself to be the driver…Is that possible?

    Thanks,

    Andy.

    Plugin Author Jules Colle

    (@jules-colle)

    Not possible right now. But I think it’s a good idea to, apart from the regular expressions, provide a flexible way to code any additional conditional logic. Don’t expect this kind of function anytime soon though. Bit too busy for the moment, sorry 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Works with calendar logic?’ is closed to new replies.