Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CW-1988] Disable ability for user to type the reply in the webchat. #7096

Open
vitellolabs opened this issue May 16, 2023 · 1 comment
Open
Labels
feature-request This label is used to track new features which is a significant change to existing product linear Low priority Created by Linear-GitHub Sync

Comments

@vitellolabs
Copy link

vitellolabs commented May 16, 2023

Is your feature or enhancement related to a problem? Please describe.

I would like to disable ability for user to type the response in the webchat, when bot sends the input_select message. At the moment user can skip the select options and continue to type.

Describe the solution you'd like

I would like to pass an argument in my json message, e.g:

{
    "content": "Select one of the items below",
    "content_type": "input_select",
    "content_attributes": {
        "items": [
            { "title": "Option1", "value": "Option 1" },
            { "title": "Option2", "value": "Option 2" }
        ]
    },
    "private":false, 
    "allow_input": false
}

Where allow_input may be used to tell client to disable the input. Of course webchat client would have to implement proper handling of this parameter.

Describe alternatives you've considered

I considered writing a client side JS to achieve this functionality but it feels like a hack rather than a solution.

Additional context

No response

CW-1988

@vitellolabs vitellolabs added the feature-request This label is used to track new features which is a significant change to existing product label May 16, 2023
@pranavrajs pranavrajs changed the title Disable ability for user to type the reply in the webchat. [CW-1988] Disable ability for user to type the reply in the webchat. Jun 1, 2023
@pranavrajs
Copy link
Member

This is a nice request. There is an option for the same, we will document it soon.

@pranavrajs pranavrajs added the Low priority Created by Linear-GitHub Sync label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This label is used to track new features which is a significant change to existing product linear Low priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

2 participants