Functions related to form output #12335

Closed
opened 2026-02-21 19:06:58 -05:00 by yindo · 0 comments
Owner

Originally created by @Pahkho on GitHub (Mar 29, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

用户姓名:
<label>联系电话:</label>
<input type="tel" name="phone" pattern="[0-9]{11}" placeholder="请输入11位手机号">

<!-- 条件显示:若为会员,显示会员等级 -->
{% if user.is_member %}
<label>会员等级:</label>
<select name="member_level">
    <option value="青铜">青铜会员</option>
    <option value="白银" selected>白银会员</option>
    <option value="黄金">黄金会员</option>
</select>
{% endif %}

<!-- 多行文本输入 -->
<label>反馈内容:</label>
<textarea name="feedback" rows="5" placeholder="请输入您的建议">{{ user.last_feedback | default('') }}</textarea>

<!-- 提交按钮 -->
<button data-size="medium" data-variant="primary">提交反馈</button>

Hi, this is my template output code. When I click submit, my data is converted to JSON format and sent in the dialog box. Is it possible to prevent the JSON output from being displayed after clicking 'Submit Feedback' and replace it with 'Submitting...' while the data is actually transmitted hiddenly?

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @Pahkho on GitHub (Mar 29, 2025). ### Self Checks - [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 (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. <form data-format="json"> <!-- 基础信息 --> <label>用户姓名:</label> <input type="text" name="username" value="{{ user.name | default('匿名用户') }}" required> <label>联系电话:</label> <input type="tel" name="phone" pattern="[0-9]{11}" placeholder="请输入11位手机号"> <!-- 条件显示:若为会员,显示会员等级 --> {% if user.is_member %} <label>会员等级:</label> <select name="member_level"> <option value="青铜">青铜会员</option> <option value="白银" selected>白银会员</option> <option value="黄金">黄金会员</option> </select> {% endif %} <!-- 多行文本输入 --> <label>反馈内容:</label> <textarea name="feedback" rows="5" placeholder="请输入您的建议">{{ user.last_feedback | default('') }}</textarea> <!-- 提交按钮 --> <button data-size="medium" data-variant="primary">提交反馈</button> </form> Hi, this is my template output code. When I click submit, my data is converted to JSON format and sent in the dialog box. Is it possible to prevent the JSON output from being displayed after clicking 'Submit Feedback' and replace it with 'Submitting...' while the data is actually transmitted hiddenly? ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo closed this issue 2026-02-21 19:06:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12335