Invalid input for question "Email".
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- frontend
调研方向
首先找到表单提交时对可选短文本问题的验证逻辑,这类问题采用电子邮件或电话号码格式;issue 没有指定文件或测试。重现报告中的步骤:输入文本,清空字段,然后提交。空的可选字段以未触碰状态提交,且不出现输入无效错误时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Please use the 👍 reaction to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!
Describe the bug
This bug appears on forms containing a non-mandatory question requiring a specific format such as email or telephone (and probably others but I've only tested these two). If the user enters any text in the response field to the question requiring the specific format, then subsequently removes this text, leaving the field blank, an error occurs when the form is submitted and it is impossible to submit the form without completing this field with a valid value.
To Reproduce
- Create a form with one optional short-text question, requiring an email address
- Attempt to fill in this form : enter some text in the email field, then delete it, leaving the field empty
- Press "Send"
- Observe the error which complains of "Invalid input for question 'questionname'"
Expected behavior
The form should be submitted as if the question had been untouched
Nextcloud (please complete the following information):
- Nextcloud-Version: 35.0.2
- Forms-Version: 5.4.1
Additional Infomation
The error message appears in English, despite my nextcloud (and all other text on the page) being in French - I am aware this observation is not directly related to this bug but it would be great to get this fixed too :-)
- 主要语言
- JavaScript
- 星标
- 383
- 派生
- 130
- 平均合并
- 13 小时 32 分钟
- 30 天内合并 PR
- 93
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/forms 的其他 Issue
-
0. Needs triage enhancement
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
0. Needs triage enhancement needs info
难度 4/5 3-5 天 新手友好度 45/100
nextcloud/forms#3733 · 1 条评论 ·
维护者通常 1 天内回复
-
0. Needs triage enhancement needs info
难度 4/5 3-5 天 新手友好度 48/100
nextcloud/forms#3732 · 1 条评论 ·
维护者通常 1 天内回复
-
0. Needs triage enhancement
难度 3/5 1-2 天 新手友好度 67/100
nextcloud/forms#3683 · 1 条评论 ·
维护者通常 1 天内回复
-
Replace description fields with NcRichText可能重新可做 @vishruthasgowda 于 69 天前认领,目前没有进行中的 PR。 未关闭1. to develop enhancement feature: 📑 form creation good first issue javascript
nextcloud/forms#3587 · 3 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
Website未关闭good first issue
难度 2/5 1-3 小时 新手友好度 91/100
TanbirRamim/open-source-radar#314 ·
维护者通常 1 天内回复
-
prio: medium
难度 2/5 1-3 小时 新手友好度 63/100
twentyhq/twenty#28826 · 1 条评论 ·
维护者通常 1 天内回复
-
status: needs triage
难度 1/5 1-3 小时 新手友好度 76/100
mastra-ai/mastra#28382 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 78/100
SolidGeeks/strata#21 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Yomguithereal/mnemonist#247 ·