Set minimum hour of time picker from another time picker

Hi all.

This is probably a very simple solution that I’m overlooking but I’m yet to figure it out and it’s driving me crazy!

I have two date/time pickers. For a start and an end date/time.

I would like the end time to observe the following conditions:

  • If the start date = end date (dd/mm/yy) then the minimum hour for the end time picker should be start time picker’s hour + 30minutes.
  • If the date != the start picker’s date (dd/mm/yy) then this can be any time (12:00am - 11:30pm)

I already have the condition that the end date must be = or +24h of that of the start date.

I have tried extracting the hours from the start date/time picker but this hasn’t worked so far.

Screenshot 2023-11-25 at 16.14.19

Any help greatly appreciated!

Your minimum hour value dynamic expression looks correct…have you made sure that the Start Time Pickers Value is not empty and that the condition is being me (ie: the dates are the same).

Use the debugger and the inspect tool to check on these values from the preview page.

1 Like

Hi Boston85719,

Good idea using the debugger/inspect tool; I’m new to the platform and completely overlooked these so thank you.

It seems as though the check to evaluate whether the condition is true happens after an initial date has been set in the end date picker. Once a date has been set (which is not governed by the conditions of being >= the start time) I can then click back in the field to set a time which is adhering to the condition.

I’ve now opted for a completely different workaround (user sets the duration instead) but thank you for the help!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.