Forums

dropdownfield connecting with different calendars

fvdc 27 Aug, 2015
hello,

i need to devolop a "more complex " reservation form.
Actually i use a combination with a calendar selector field and it works good,including the days they cannot select a calendar day (for instance holiday)

Now i need to different calendars in the same contact page
so i will design a dropdown list field with 2 selections;
selection 1 (midday) needs to open/upload a dropdownlist 2 (composed of different times, 12 AM, 1 PM, 2PM):
depending on the selection in dropdownfield 2 calendar 1 needs to upload

selection 2 (evening) needs to open/upload a dropdownlist 3 (composed of different times, 6PM, 7PM,8PM):
depending on the selection in dropdownfield 3 calendar 2 needs to upload

calendar 1 and 2 will have different days,and some in common, will that be an issue??


After having completed the calendar choice, visitors have to fill in some more common fields

How to program that conditional form ?

Thanks for the feedback and help
GreyHead 28 Aug, 2015
Hi fvdc,

You can do the linked drop-downs using the Events tab in the first drop-down to change the options visible in the second one.

The calendars would need custom JavaScript to change the data- settings depending on the drop-down selections. That should not be hard to do once you have the logic clear.

Bob
fvdc 29 Aug, 2015
Hi Bob,
thanks for the feedback, but i am not getting it.
I have dropdown box with 2 values
lunch
dinner
lunch shoul load datepicker 5
dinner should load datepickerdinner

It does not
see printscreens

thanks again for the help
GreyHead 29 Aug, 2015
Hi fvdc,

a) The options lists are value=text so the value is the part before the = sign. But I suggest that you don't use 0 and 1 as values. Try lunch=lunch instead.

b) The element ID is the text in the Field ID box so can't be 5 or 20 - those are counters that CF uses.

c) You probably want to use show/hide Parent to hide the element and its label/

Bob

PS Please avoid dashes in element names, they can cause problems with database actions, underscores are OK.
fvdc 31 Aug, 2015
Hi Bob, thanks;it starts to work now like we want.
Now i only have one more issue:
after the customer has selected from the dropdownlist the option lunch or dinner, the dropdownbox should be hidden,to avoid a screen with a second selection on the same page.
Ideas are very much appreciated.

Kind regards

FVDC
GreyHead 01 Sep, 2015
Hi fvdc,

I'm not quite sure what you need here . . . I think the solution might be some custom JavaScript to make the drop-down read-only. If you do that the result will still be submitted but can't be changed.

Bob
This topic is locked and no more replies can be posted.