Skip to content

text area does not support pre-filled values in Template node #26818

@hoanghiu111

Description

@hoanghiu111

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • 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.

Dify version

1.5.0

Cloud or Self Hosted

Cloud

Steps to reproduce

The current code inside Template node includes textarea tags, which would take out some information from the task input variables

Currently editing information for report <b>{{ task.get('ReportID', '') }}</b>: <form data-format="json"> <label for="taskID">Task ID:</label> <input type="text" name="taskID" id="taskID" value="{{ task.get('Task ID', '') }}"/> <label for="taskName">Task Name:</label> <input type="text" name="taskName" id="taskName" value="{{ task.get('Task Name', '') }}"/> <label for="taskRole">Task Role:</label> <input type="text" name="taskRole" id="taskRole" value="{{ task.get('Task Role', '') }}"/> <label for="taskStatus">Task Status:</label> <input type="select" name="taskStatus" id="taskStatus" data-options='["Pending", "Not started", "In progress", "Done"]' value="{{ task.get('Task Status', '') }}"/> <label for="startDate">Start Date:</label> <input type="text" name="startDate" id="startDate" value="{{ task.get('Start Date', '') }}"/> <label for="endDate">End Date:</label> <input type="text" name="endDate" id="endDate" value="{{ task.get('End Date', '') }}"/> <label for="progress">Progress:</label> <input type="number" name="progress" id="progress" value="{{ task.get('Progress', '') }}"/> <label for="progressDetail">Progress Detail:</label> <textarea name="progressDetail" id="progressDetail" placeholder="Enter progress details...">{{ task.get('Progress Detail', 'No details provided') }}</textarea> <label for="issues">Issues:</label> <textarea name="issues" id="issues" placeholder="Enter issues...">{{ task.get('Issues', 'No issues reported') }}</textarea> <label for="nextAction">Next Action:</label> <textarea name="nextAction" id="nextAction" placeholder="Enter next actions...">{{ task.get('Next Action', 'No next action specified') }}</textarea> <label for="supportNeed">Support Need:</label> <textarea name="supportNeed" id="supportNeed" placeholder="Enter support needs...">{{ task.get('Support Need', 'No support needed') }}</textarea> <button type="submit" data-size="small" data-variant="primary">Update task information</button> <input type="hidden" name="action" value="update task information"/> </form> 

✔️ Expected Behavior

fields using textarea tag would be filled with value from task variable

❌ Actual Behavior

fields using textarea are empty

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood first issue for newcomers🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions