forms icon indicating copy to clipboard operation
forms copied to clipboard

Multi time/date question

Open Leone25 opened this issue 6 months ago • 6 comments

Nextcloud:

  • Nextcloud-Version: 28.0.3
  • Forms-Version: 5.1.0

Is your feature request related to a problem? Please describe. I use forms to manage ask users their availability and make schedules based on it.

Describe the solution you'd like It's be great to expand the time range question to allow multiple ranges to be submitted. Would also be nice to be able to provide a minute step value, instead of just being stuck with the default one. The component already supports it (although it's limited).

Describe alternatives you've considered Currently I have to make a multiple choice question with a wall of slots in 30min increments and tell users to check the ones they are available. I've tried the polls app, but it's mainly focused on trying to find a common time for everyone, while I need to spread people to fill all hours.

I'm able to help develop the feature.

Leone25 avatar May 11 '25 11:05 Leone25

@Leone25 could you please also post the mockup of how you think it might look like?

Chartman123 avatar May 11 '25 13:05 Chartman123

For the edit page adding these options in the action menu would be sufficient (probably a different icon for the time step):

Image

Ror the form page, I haven't done anything yet, but I was thinking of adding an info line like "Multiple answers allowed" between the question and the answer and when the range is filled a new empty one appears below to add more.

The extra options optionsLimitMax and optionsLimitMin could be reused to also enforce the number of dates/times provided, wouldn't be that much extra work, and of course those would end up in the action menu as well and would modify the info line to indicate that appropriately.

For the results, in the summary a bar graph of the number of availability over time would be nice, while for the single responses i'd go for a simple [from:from]-[to:to]; [...] format, same for the excel export

Leone25 avatar May 11 '25 13:05 Leone25

What came to my mind: why don't you just use several time-range questions (configure it once and then copy it)? First one mandatory, further questions optional?

Chartman123 avatar May 12 '25 14:05 Chartman123

Because I don't know how many are needed and the flow is not as intuitive.

Leone25 avatar May 12 '25 15:05 Leone25

Ok, so you would like the user to add up to n time-ranges?

Chartman123 avatar May 12 '25 19:05 Chartman123

by default, no, I'd like the user to be able to provide any number of time ranges, but I did comment that it'd easy enough and reasonable to also include the option to provide a min and a max number.

Leone25 avatar May 12 '25 20:05 Leone25