How to condense this if block

Hi. I’ve got quite a few places in my app where I use “Any Component”, which saves me a whole bunch of blocks.

I think I can shorten this down, but not sure how. If it’s not possible, I understand.

Here is what I have:

Basically, I have 3 date pickers and 3 time pickers. They are used to enter a date and time for an appointment request. The blocks above are in the Any Time Picker block, but time restrictions depend on the day, so the day must be picked first. Once the day is picked, then the time can be picked.

You can create a procedure for below marked blocks with date picker instant as a parameter (so that everytime you can pass a different date picker instant) and then call that procedure wherever you use these blocks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.