Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Invalid input for question "Email".

未关闭 适合新手
#3,802 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@orshih6 已经在做这个了。

开始于 2026年10月25日。

  • #3803 来自 @orshih6 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
frontend

调研方向

首先找到表单提交时对可选短文本问题的验证逻辑,这类问题采用电子邮件或电话号码格式;issue 没有指定文件或测试。重现报告中的步骤:输入文本,清空字段,然后提交。空的可选字段以未触碰状态提交,且不出现输入无效错误时,即为完成。

由索引模型根据 Issue 内容生成。

描述

0. Needs triage bug

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

  1. Create a form with one optional short-text question, requiring an email address
  2. Attempt to fill in this form : enter some text in the email field, then delete it, leaving the field empty
  3. Press "Send"
  4. 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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/forms 的其他 Issue

查看 nextcloud/forms 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。