mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 12:25:45 -04:00
[DOCS]: 模板方法中定义的type="select" 无法渲染 #280
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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: inputSuggested Changes
no
Reason for Change
No response
Code of Conduct
@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
@madLifezc commented on GitHub (Nov 26, 2025):
我的Dify版本是0.15.3 。这个版本是不是不支持select样式。我在高版本Dify是可以渲染出来选择框,同样的代码,请问DIfy是从哪个版本开始支持的呢
@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