[DOCS]: 模板方法中定义的type="select" 无法渲染 #280

Closed
opened 2026-02-16 05:19:43 -05:00 by yindo · 3 comments
Owner

Originally created by @madLifezc on GitHub (Nov 26, 2025).

Type of Documentation Change

Error/Typo fix

Documentation Page URL or Path

No response

Current Content

Login 异常提示: Select: Unsupported tag: input

Suggested Changes

no

Reason for Change

No response

Code of Conduct

  • I agree to follow Dify's documentation contribution guidelines
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.
Originally created by @madLifezc on GitHub (Nov 26, 2025). ### Type of Documentation Change Error/Typo fix ### Documentation Page URL or Path _No response_ ### Current Content <form data-format="json"> <label for="select">Select:</label> <input type="select" name="select" data-options='["hello","world"]'/> <label for="username">Username:</label> <input type="text" name="username" /> <button data-size="small" data-variant="primary">Login</button> </form> 异常提示: Select: Unsupported tag: input ### Suggested Changes no ### Reason for Change _No response_ ### Code of Conduct - [x] I agree to follow Dify's documentation [contribution guidelines](https://github.com/langgenius/dify/blob/0277a37fcad5ad86aeb239485c27fffd5cd90043/CONTRIBUTING.md) - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields.
yindo added the documentationbug labels 2026-02-16 05:19:43 -05:00
yindo closed this issue 2026-02-16 05:19:43 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 26, 2025):

Hi @madLifezc! I'm Dosu and I’m helping the dify-docs team.

Dify's form renderer does support select dropdowns using <input type="select" data-options='["option1","option2"]' .../>. The options should be provided as a JSON array in the data-options attribute. If you're seeing "Unsupported tag: input", it may be due to a parsing issue or a bug in the template engine. The code expects this exact syntax and will render a dropdown using the internal Select component if used correctly. For reference, see the implementation in the Dify frontend codebase (source).

If your markup matches this pattern and still fails, double-check for typos or formatting issues in your template. If the problem persists, it may be worth reporting as a bug.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Nov 26, 2025): <!-- Greeting --> Hi @madLifezc! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-docs team. <!-- Answer --> Dify's form renderer does support select dropdowns using <input type="select" data-options='["option1","option2"]' .../>. The options should be provided as a JSON array in the data-options attribute. If you're seeing "Unsupported tag: input", it may be due to a parsing issue or a bug in the template engine. The code expects this exact syntax and will render a dropdown using the internal Select component if used correctly. For reference, see the implementation in the Dify frontend codebase ([source](https://github.com/langgenius/dify/blob/b353a126d8fd24028c24b2e89015ee1fe9629682/web/app/components/base/markdown-blocks/form.tsx#L22-L261)). If your markup matches this pattern and still fails, double-check for typos or formatting issues in your template. If the problem persists, it may be worth reporting as a bug. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/76444ced-f0dd-43b2-9f92-aa037fde1ace?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/76444ced-f0dd-43b2-9f92-aa037fde1ace?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/76444ced-f0dd-43b2-9f92-aa037fde1ace?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/76444ced-f0dd-43b2-9f92-aa037fde1ace?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/76444ced-f0dd-43b2-9f92-aa037fde1ace?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/76444ced-f0dd-43b2-9f92-aa037fde1ace?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/76444ced-f0dd-43b2-9f92-aa037fde1ace?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Dify%27s%20form%20renderer%20does%20support%20select%20dropdowns%20using%20%3Cinput%20type%3D%22select%22%20data-options%3D%27%5B%22option1%22%2C%22option2%22%5D%27%20.../%3E.%20The%20options%20should%20be%20provided%20as%20a%20JSON%20array%20in%20the%20data-options%20attribute.%20If%20you%27re%20seeing%20%22Unsupported%20tag%3A%20input%22%2C%20it%20may%20be%20due%20to%20a%20parsing%20issue%20or%20a%20bug%20in%20the%20template%20engine.%20The%20code%20expects%20this%20exact%20syntax%20and%20will%20render%20a%20dropdown%20using%20the%20internal%20Select%20component%20if%20used%20correctly.%20For%20reference%2C%20see%20the%20implementation%20in%20the%20Dify%20frontend%20codebase%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/blob/b353a126d8fd24028c24b2e89015ee1fe9629682/web/app/components/base/markdown-blocks/form.tsx%23L22-L261%29%29.%20%0A%0AIf%20your%20markup%20matches%20this%20pattern%20and%20still%20fails%2C%20double-check%20for%20typos%20or%20formatting%20issues%20in%20your%20template.%20If%20the%20problem%20persists%2C%20it%20may%20be%20worth%20reporting%20as%20a%20bug.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-docs/issues/546)
Author
Owner

@madLifezc commented on GitHub (Nov 26, 2025):

我的Dify版本是0.15.3 。这个版本是不是不支持select样式。我在高版本Dify是可以渲染出来选择框,同样的代码,请问DIfy是从哪个版本开始支持的呢

@madLifezc commented on GitHub (Nov 26, 2025): 我的Dify版本是0.15.3 。这个版本是不是不支持select样式。我在高版本Dify是可以渲染出来选择框,同样的代码,请问DIfy是从哪个版本开始支持的呢
Author
Owner

@dosubot[bot] commented on GitHub (Nov 26, 2025):

Dify 0.15.3 不支持 <input type="select"> 渲染选择框。这个功能是在 2025 年 7 月 28 日合并的 PR #21192 后才加入的,支持带 data-options 的 select 下拉框,相关代码和文档示例都在更高版本才出现(见PR #21192文档示例)。建议升级到 2025 年 7 月底之后发布的 Dify 版本,即可正常使用 select 样式。

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Nov 26, 2025): <!-- Answer --> Dify 0.15.3 不支持 `<input type="select">` 渲染选择框。这个功能是在 2025 年 7 月 28 日合并的 PR #21192 后才加入的,支持带 `data-options` 的 select 下拉框,相关代码和文档示例都在更高版本才出现(见[PR #21192](https://github.com/langgenius/dify/pull/21192) 和[文档示例](https://github.com/langgenius/dify-docs/blob/fb91df937e4e2bc2809da5d9a504fdba63319285/en/guides/workflow/node/template.mdx#L33-L52))。建议升级到 2025 年 7 月底之后发布的 Dify 版本,即可正常使用 select 样式。 <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/d6ad1cba-a719-4b3d-97f2-925d6279f19d?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d6ad1cba-a719-4b3d-97f2-925d6279f19d?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d6ad1cba-a719-4b3d-97f2-925d6279f19d?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d6ad1cba-a719-4b3d-97f2-925d6279f19d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d6ad1cba-a719-4b3d-97f2-925d6279f19d?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d6ad1cba-a719-4b3d-97f2-925d6279f19d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d6ad1cba-a719-4b3d-97f2-925d6279f19d?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Dify%200.15.3%20%E4%B8%8D%E6%94%AF%E6%8C%81%20%60%3Cinput%20type%3D%22select%22%3E%60%20%E6%B8%B2%E6%9F%93%E9%80%89%E6%8B%A9%E6%A1%86%E3%80%82%E8%BF%99%E4%B8%AA%E5%8A%9F%E8%83%BD%E6%98%AF%E5%9C%A8%202025%20%E5%B9%B4%207%20%E6%9C%88%2028%20%E6%97%A5%E5%90%88%E5%B9%B6%E7%9A%84%20PR%20%2321192%20%E5%90%8E%E6%89%8D%E5%8A%A0%E5%85%A5%E7%9A%84%EF%BC%8C%E6%94%AF%E6%8C%81%E5%B8%A6%20%60data-options%60%20%E7%9A%84%20select%20%E4%B8%8B%E6%8B%89%E6%A1%86%EF%BC%8C%E7%9B%B8%E5%85%B3%E4%BB%A3%E7%A0%81%E5%92%8C%E6%96%87%E6%A1%A3%E7%A4%BA%E4%BE%8B%E9%83%BD%E5%9C%A8%E6%9B%B4%E9%AB%98%E7%89%88%E6%9C%AC%E6%89%8D%E5%87%BA%E7%8E%B0%EF%BC%88%E8%A7%81%5BPR%20%2321192%5D%28https%3A//github.com/langgenius/dify/pull/21192%29%20%E5%92%8C%5B%E6%96%87%E6%A1%A3%E7%A4%BA%E4%BE%8B%5D%28https%3A//github.com/langgenius/dify-docs/blob/fb91df937e4e2bc2809da5d9a504fdba63319285/en/guides/workflow/node/template.mdx%23L33-L52%29%EF%BC%89%E3%80%82%E5%BB%BA%E8%AE%AE%E5%8D%87%E7%BA%A7%E5%88%B0%202025%20%E5%B9%B4%207%20%E6%9C%88%E5%BA%95%E4%B9%8B%E5%90%8E%E5%8F%91%E5%B8%83%E7%9A%84%20Dify%20%E7%89%88%E6%9C%AC%EF%BC%8C%E5%8D%B3%E5%8F%AF%E6%AD%A3%E5%B8%B8%E4%BD%BF%E7%94%A8%20select%20%E6%A0%B7%E5%BC%8F%E3%80%82)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-docs/issues/546)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-docs#280