I am trying to minimize data entry time on my intervention form so I would like to automate as much as possible.
I have a StartTime Card and an EndTime Card that have 3 dropdowns: Hour, Minute, and AM/PM.
StartTime Card:
ddStartTimeHour
ddStartTimeMinute
ddStartTimeAMPM
EndTime Card:
ddEndTimeHour
ddEndTimeMinute
ddEndTimeAMPM
I need to set default on my ddStartTimeHour for current hour but user can change with dropdown if contact made was not within the current hour.
ddStartTimeHour
Items: ["12","1","2","3","4","5","6","7","8","9","10","11"]
Likewise, I need to set default on my ddStartTimeMinute for current minute as close to the 5 minute interval listed in items, also user can change with dropdown if contact made was not within the current minute.
ddStartTimeMinute
Items: ["05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"]
Finally, need to set ddStartTimeAMPM to current AM/PM
ddStartTimeAMPM
Items: ["AM", "PM"]
Now the tricky part:
Want EndTime default hour, minute, AM/PM, dropdown values to be based on ddContactType_1.Selected.Value
ddContactType_1 Items:
["CICO", "Student Conference", "Guardian Conference", "Phone", "Home Visit", "Text Message", "Letter", "Email"]
"CICO" End time = start time +15 minutes
"Student Conference" End time = start time + 30 minutes
"Guardian Conference" End time + 30 minutes
"Phone" End time = start time + 5 minutes
"Home Visit" End time = start time + 30 minutes
"Text Message" End time = start time+ 5 minutes
"Letter" End time + 10 minutes
"Email" End time + 5 minutes
Need this to be displayed in EndTime card dropdowns:
ddEndTimeHour
ddEndTimeMinute
ddEndTimeAMPM
For example, if start time of CICO was 7:15am, then
ddEndTimeHour default would be 7,
ddEndTimeMinute default would be 30,
ddEndTimeAMPM default would still be AM
Maybe I am outkicking my coverage but if I can get this to work, my users and I will be very grateful.