Skip to content

Chat & Workflow max documents settings input issue #1370

Description

@Xeelee33

In Admin Settings -> Agents & Actions -> Actions, trying to enter a new number via keyboard in "Chat max documents" and "Workflow max documents", since the "min"="2", trying to enter any value that starts with a 1 defaults the starting number to 2, so typing "11" is automatically changed to "21". I know it's possible to change the 2 to a 1 after typing in the second number, or using the slider, but I can see problems if an admin is moving quickly through the settings and doesn't realize the setting they entered was automatically changed by the HTML on entry to a value that's roughly double the intended one.

<input type="range" class="form-range document-action-capability-range" id="document_action_analyze_chat_max_documents_range" min="2" max="300" step="1" value="{{ analyze_capability.chat_max_documents }}" data-range-sync="document_action_analyze_chat_max_documents" data-range-display="document_action_analyze_chat_max_documents_value" />
</div>
<div class="col-lg-4">
<input type="number" class="form-control" id="document_action_analyze_chat_max_documents" name="document_action_analyze_chat_max_documents" min="2" max="300" value="{{ analyze_capability.chat_max_documents }}" />

<input type="range" class="form-range document-action-capability-range" id="document_action_analyze_workflow_max_documents_range" min="2" max="1000" step="1" value="{{ analyze_capability.workflow_max_documents }}" data-range-sync="document_action_analyze_workflow_max_documents" data-range-display="document_action_analyze_workflow_max_documents_value" />
</div>
<div class="col-lg-4">
<input type="number" class="form-control" id="document_action_analyze_workflow_max_documents" name="document_action_analyze_workflow_max_documents" min="2" max="1000" value="{{ analyze_capability.workflow_max_documents }}" />

I typed "11" in all 4 of the boxes below:
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions