docs: fix template node interactive forms and add tag reference#786
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Template node documentation to correct Interactive Forms inaccuracies, add missing reference tables (supported tags/input types), document quick-reply button behavior, and align translated (zh/ja) pages with the updated English content.
Changes:
- Fixes the Jinja2 filters example (replaces non-existent
strftimewithjoin). - Rewrites the Interactive Forms section with clarified submit formats (
data-format), an expanded form example, supported tags/input types tables, and quick-reply button documentation. - Corrects Template output limit documentation to 400,000 characters and syncs zh/ja translations accordingly.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| en/use-dify/nodes/template.mdx | Corrects filter example, rewrites Interactive Forms docs with references/tables, adds quick-reply button docs, updates output limit. |
| zh/use-dify/nodes/template.mdx | Syncs with the updated English content (Interactive Forms references, quick-reply buttons, output limit) and updates the page metadata/terminology. |
| ja/use-dify/nodes/template.mdx | Syncs with the updated English content (Interactive Forms references, quick-reply buttons, output limit) and refreshes wording/formatting. |
Comments suppressed due to low confidence (1)
en/use-dify/nodes/template.mdx:176
- This line ends with trailing whitespace after the final period. Please trim it (and ideally run a whitespace-trimming formatter on the file).
Unlike form buttons, standalone buttons pass `data-variant` and `data-size` through to the underlying component without validation. An unrecognized value can leave the button rendered as plain text rather than a styled button.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Interactive Forms section on
/en/use-dify/nodes/templatehad several factual errors flagged by the Support team. This PR corrects them, adds the reference content the section was missing, and syncs the zh and ja translations.Fixes
TEMPLATE_TRANSFORM_MAX_LENGTHdefault inapi/configs/feature/__init__.pyand graphon).<form>that closed the HTML block during markdown parsing and prevented downstream tags from rendering as form fields. Replacedrequired(not enforced by the form component) withplaceholder. The example was also expanded to demonstrate every supported input type.JSON.parse).strftime(not a built-in Jinja2 filter; raisesTemplateAssertionError: No filter named 'strftime') withjoin.<Note>callout warning that blank lines between tags inside<form>break rendering.Additions
### Supported Tagstable covering<form>,<label>,<input>,<textarea>,<button>with valid attributes, button variants, and sizes. Values verified againstweb/app/components/base/markdown-blocks/form.tsx.### Supported Input Typestable coveringtext,password,email,number,date,datetime,time,checkbox,select,hidden, with the actual submitted output for each. Thetimerow is documented honestly: the value is not formatted before submission, so it includes a full date prefix.### Quick-Reply Buttonssection for standalone<button>withdata-messageanddata-link, including a<Note>about unvalidateddata-variant/data-sizevalues for standalone buttons.Translations
模板to模板转换to matchweb/i18n/zh-Hans/workflow.json'sblocks.template-transform: "模板转换".Codereferences aligned with codebase i18n (代码执行节点/コード実行ノード).