forms icon indicating copy to clipboard operation
forms copied to clipboard

Validation of singleline/short response, url, regex...

Open genofire opened this issue 5 years ago • 4 comments

On a single line answer type it would be nice to have validation:

  • E-Mail
  • IBAN
  • own Regular Expression

Edit (@jotoeri):

  • Numeric only #605

genofire avatar Jan 21 '20 10:01 genofire

Yes, that would be good.

"Date" should be a separate question type though just like it is in Google Forms: https://github.com/nextcloud/forms/issues/14

jancborchardt avatar May 05 '20 22:05 jancborchardt

Crowdsignal (a service I use and pay for) implements this as predefined form fields - which is the same approach as you mentioned @jancborchardt.

See below:

Screenshot from 2020-05-06 12-54-59

The labels, and format are then customisable:

Screenshot from 2020-05-06 12-56-55

for me, this approach makes sense as it focuses on what I want to gather - email, telephone, date, etc.

ei8fdb avatar May 06 '20 11:05 ei8fdb

I would like to see this feature in future as well :)

GVLLIFESTYLE avatar Aug 03 '22 08:08 GVLLIFESTYLE

Would be nice to have regex allowed for individual questions, for example, I'd like to limit character length for certain questions using [\w]{1,140}

andrewj720 avatar Sep 07 '22 10:09 andrewj720