Forms: "Date" question type with dropdown calendar

Created on 6 Jun 2019  ·  14Comments  ·  Source: nextcloud/forms

You should add a dropdown calendar.

1. to develop enhancement ❓ question types good first issue

Most helpful comment

I made my first form today and it included a date field. I didn't know there wasn't an answer type of Date. I just made it a short answer, but a pop-out calendar date picker would be "clutch".

What my first form was based on is my wife's disorganization of business expenses for real estate work. Date, Type (dropdown based on IRS classifications), Item, Amount. With the CSV output it's going to work fine, but you know how data people want clean inputs. The date and the amount are my concerns.

Forms are about tightening the variance on inputs.

A date widget call for a date field set to the current date is efficient _and_ accurate.

A number type question would be ideal too and maybe on mobile dev's it calls the calculator type keypad for better input.

All 14 comments

@pricard32 could you describe your use-case a bit more? This helps us design it properly. :)

I made my first form today and it included a date field. I didn't know there wasn't an answer type of Date. I just made it a short answer, but a pop-out calendar date picker would be "clutch".

What my first form was based on is my wife's disorganization of business expenses for real estate work. Date, Type (dropdown based on IRS classifications), Item, Amount. With the CSV output it's going to work fine, but you know how data people want clean inputs. The date and the amount are my concerns.

Forms are about tightening the variance on inputs.

A date widget call for a date field set to the current date is efficient _and_ accurate.

A number type question would be ideal too and maybe on mobile dev's it calls the calculator type keypad for better input.

So adding a input date picker?
That would be enough for you ?

Yep, just like Google Forms, a "Date" question type would be good.

I would say this goes with https://github.com/nextcloud/forms/issues/177
Just predefined input types :)

That issue is about text validation of the single input line. This is about a specific input type="date", just like Google Forms does. I’d say keep it separate cause it’s something else.

Well, if the input is a type date/datetime/time we show the dropdown?

Point is that the "Date" and "Time" elements are different elements from the "Short answer" field. It’s not about only validation, but about adding a specific element in the "Add question" part as well.

(Just making sure that we don’t have the situation where people have to first pick "Short question" and then there’s some validation stuff where you select "Date" cause that would be quite comples.

See Google Forms for guidance:

They are different entries, but google form is doing exactly what I said, this is just an input type date afterwards
<input type="date" class="quantumWizTextinputPaperinputInput exportInput" jsname="YPqjbf" autocomplete="off" tabindex="0" value="" data-initial-value="">

I guess we are in an issue of coding vs UX :wink:
Same component to use, so for me it's a duplicate, while you want dedicated entries in the new question menu, correct?

The, seeing your comment in https://github.com/nextcloud/forms/issues/177#issuecomment-624342477
Closing ?

I'd like to boost the design Crowdsignal uses - they have a list of predefined form fields - email addresses, date, URL, etc.

I guess we are in an issue of coding vs UX wink
Same component to use, so for me it's a duplicate, while you want dedicated entries in the new question menu, correct?

Enhancements should always be looked at from the user perspective, so I’d keep this open. :)

Done with #672 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ei8fdb picture ei8fdb  ·  6Comments

jotoeri picture jotoeri  ·  5Comments

bpcurse picture bpcurse  ·  7Comments

derhagen picture derhagen  ·  4Comments

Dubidubiduu picture Dubidubiduu  ·  6Comments